[downloader/mhtml] Fix fragments with absolute urls (#3044)
Authored-by: coletdjnz
This commit is contained in:
parent
17322130a9
commit
b3edc8068e
3 changed files with 7 additions and 3 deletions
|
|
@ -3208,7 +3208,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'width': width,
|
||||
'height': height,
|
||||
'fragments': [{
|
||||
'path': url.replace('$M', str(j)),
|
||||
'url': url.replace('$M', str(j)),
|
||||
'duration': min(fragment_duration, duration - (j * fragment_duration)),
|
||||
} for j in range(math.ceil(fragment_count))],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue