1
0
Fork 0

[downloader/mhtml] Fix fragments with absolute urls (#3044)

Authored-by: coletdjnz
This commit is contained in:
coletdev 2022-03-14 11:03:40 +13:00 committed by GitHub
commit b3edc8068e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

@ -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))],
}