]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/downloader/f4m.py
[dash,youtube] Download live from start to end (#888)
[yt-dlp.git] / yt_dlp / downloader / f4m.py
index 3eb406152ce01704671e741e7f033bb731680cbc..0008b7c286f171b8aacda173f04cd916014d7cc0 100644 (file)
@@ -366,7 +366,7 @@ def real_download(self, filename, info_dict):
         ctx = {
             'filename': filename,
             'total_frags': total_frags,
-            'live': live,
+            'live': bool(live),
         }
 
         self._prepare_frag_download(ctx)
@@ -380,7 +380,7 @@ def real_download(self, filename, info_dict):
 
         base_url_parsed = compat_urllib_parse_urlparse(base_url)
 
-        self._start_frag_download(ctx)
+        self._start_frag_download(ctx, info_dict)
 
         frag_index = 0
         while fragments_list:
@@ -434,6 +434,6 @@ def real_download(self, filename, info_dict):
                     msg = 'Missed %d fragments' % (fragments_list[0][1] - (frag_i + 1))
                     self.report_warning(msg)
 
-        self._finish_frag_download(ctx)
+        self._finish_frag_download(ctx, info_dict)
 
         return True