]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[downloader/dash] Rename the protocol
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 4 Jun 2015 14:27:29 +0000 (22:27 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 4 Jun 2015 14:27:29 +0000 (22:27 +0800)
'http_dash_segments' looks more like a protocol name than
'dash_segments'

youtube_dl/downloader/__init__.py
youtube_dl/extractor/youtube.py

index 1b618ab54ae17ace63f60f9df173837a5e5a9171..dccc59212d3028bb9a96f0eb9ffff4acb0be681e 100644 (file)
@@ -21,7 +21,7 @@ PROTOCOL_MAP = {
     'mms': RtspFD,
     'rtsp': RtspFD,
     'f4m': F4mFD,
-    'dash_segments': DashSegmentsFD,
+    'http_dash_segments': DashSegmentsFD,
 }
 
 
index 692d4d8db2f6f48feea2ea6b2f10bdf5949bf122..6d288e8487a5875d862e63fe6200cd788a15c9bf 100644 (file)
@@ -820,7 +820,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                         f.update({
                             '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')],
-                            'protocol': 'dash_segments',
+                            'protocol': 'http_dash_segments',
                         })
                     try:
                         existing_format = next(