aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor
diff options
context:
space:
mode:
authorcoletdev <coletdjnz@protonmail.com>2022-03-14 11:03:40 +1300
committerGitHub <noreply@github.com>2022-03-13 22:03:40 +0000
commitb3edc8068e00d558d5fecf79ac36a1c8c7365e3a (patch)
tree706d1e8a25fa299b75f6763d8c807b4ffc129ed1 /yt_dlp/extractor
parent17322130a954577bb03b833d5c435638e51e19f2 (diff)
downloadhypervideo-pre-b3edc8068e00d558d5fecf79ac36a1c8c7365e3a.tar.lz
hypervideo-pre-b3edc8068e00d558d5fecf79ac36a1c8c7365e3a.tar.xz
hypervideo-pre-b3edc8068e00d558d5fecf79ac36a1c8c7365e3a.zip
[downloader/mhtml] Fix fragments with absolute urls (#3044)
Authored-by: coletdjnz
Diffstat (limited to 'yt_dlp/extractor')
-rw-r--r--yt_dlp/extractor/francetv.py2
-rw-r--r--yt_dlp/extractor/youtube.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/francetv.py b/yt_dlp/extractor/francetv.py
index 877c5c055..347a766d8 100644
--- a/yt_dlp/extractor/francetv.py
+++ b/yt_dlp/extractor/francetv.py
@@ -187,7 +187,7 @@ class FranceTVIE(InfoExtractor):
'protocol': 'mhtml',
'url': 'about:invalid',
'fragments': [{
- 'path': sheet,
+ 'url': sheet,
# XXX: not entirely accurate; each spritesheet seems to be
# a 10×10 grid of thumbnails corresponding to approximately
# 2 seconds of the video; the last spritesheet may be shorter
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py
index 7e3f142c7..4fe9cec5b 100644
--- a/yt_dlp/extractor/youtube.py
+++ b/yt_dlp/extractor/youtube.py
@@ -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))],
}