Răsfoiți Sursa

[extractor/common] _extract_f4m_formats: Use more specific messages when downloading the manifest

Jaime Marquínez Ferrándiz 11 ani în urmă
părinte
comite
f036a6328e
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      youtube_dl/extractor/common.py

+ 3 - 1
youtube_dl/extractor/common.py

@@ -592,7 +592,9 @@ class InfoExtractor(object):
         time.sleep(timeout)
         time.sleep(timeout)
 
 
     def _extract_f4m_formats(self, manifest_url, video_id):
     def _extract_f4m_formats(self, manifest_url, video_id):
-        manifest = self._download_xml(manifest_url, video_id)
+        manifest = self._download_xml(
+            manifest_url, video_id, 'Downloading f4m manifest',
+            'Unable to download f4m manifest')
 
 
         formats = []
         formats = []
         for media_el in manifest.findall('{http://ns.adobe.com/f4m/1.0}media'):
         for media_el in manifest.findall('{http://ns.adobe.com/f4m/1.0}media'):