aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2021-01-28 16:22:24 +0100
committerRemita Amine <remitamine@gmail.com>2021-01-28 16:24:46 +0100
commit0b4f03a56394dee070f6e1723af8ce3a9ce44bfb (patch)
treeacb55a59d74edaafd277c5d0e03f149539bdcaf5
parent7b8fa658f88d53066f7a2ad00df19697552cf286 (diff)
[youtube] improve DASH formats file size extraction
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index f57099f8c..b254ceced 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -2370,7 +2370,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
mpd_url, video_id, fatal=dash_mpd_fatal,
formats_dict=self._formats):
if not df.get('filesize'):
- df['filesize'] = _extract_filesize(df['url'])
+ df['filesize'] = _extract_filesize(df.get('fragment_base_url') or df['url'])
# Do not overwrite DASH format found in some previous DASH manifest
if df['format_id'] not in dash_formats:
dash_formats[df['format_id']] = df