Browse Source

[downloader/dash] Rename the protocol

'http_dash_segments' looks more like a protocol name than
'dash_segments'
Yen Chi Hsuan 10 years ago
parent
commit
423d2be5f8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      youtube_dl/downloader/__init__.py
  2. 1 1
      youtube_dl/extractor/youtube.py

+ 1 - 1
youtube_dl/downloader/__init__.py

@@ -21,7 +21,7 @@ PROTOCOL_MAP = {
     'mms': RtspFD,
     'mms': RtspFD,
     'rtsp': RtspFD,
     'rtsp': RtspFD,
     'f4m': F4mFD,
     'f4m': F4mFD,
-    'dash_segments': DashSegmentsFD,
+    'http_dash_segments': DashSegmentsFD,
 }
 }
 
 
 
 

+ 1 - 1
youtube_dl/extractor/youtube.py

@@ -820,7 +820,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                         f.update({
                         f.update({
                             'initialization_url': segment_list.find('{urn:mpeg:DASH:schema:MPD:2011}Initialization').attrib['sourceURL'],
                             'initialization_url': segment_list.find('{urn:mpeg:DASH:schema:MPD:2011}Initialization').attrib['sourceURL'],
                             'segment_urls': [segment.attrib.get('media') for segment in segment_list.findall('{urn:mpeg:DASH:schema:MPD:2011}SegmentURL')],
                             'segment_urls': [segment.attrib.get('media') for segment in segment_list.findall('{urn:mpeg:DASH:schema:MPD:2011}SegmentURL')],
-                            'protocol': 'dash_segments',
+                            'protocol': 'http_dash_segments',
                         })
                         })
                     try:
                     try:
                         existing_format = next(
                         existing_format = next(