-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_extract_akamai_formats weird problem #273
Comments
please give an example with the Without any additional info, my guess is that the variables have |
sry for the little infos... here's more: so, the manifest url that works is
generating the mp4 direct url
Instead the manifest that creates problem is:
and the resulting mp4 url is wrong: but, like I said, if I do the same oparation just one step at a time it works. Only in the "condensed" way it generates problems. |
ok, figured out the problem. the replacement is |
ok, solution found: ytdl-org/youtube-dl@193422e#commitcomment-44741426 instead of \1 use \g<1> |
Authored by: CXwudi
Checklist
Verbose log
Description
i'm experimenting a bit with an extractor and I'm trying to use _extract_akamai_formats in common.py
it basically takes the hls manifest url to recreate the http direct url for the mp4 of the file.
but it seems that some m3u8 manifest creates some problem with the re.sub function that I cannot understand.
the line that generates the problem is this one:
but if I recreate every step of the same line the code is executed without problems.
reading the traceback log is seems to me that it's a problem with the regex library. Can somebody explain it to me?
The text was updated successfully, but these errors were encountered: