]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[mtv,cc] Use hls by default (closes #11641)
authorSergey M․ <dstftw@gmail.com>
Tue, 10 Jan 2017 15:30:47 +0000 (22:30 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 10 Jan 2017 15:30:47 +0000 (22:30 +0700)
youtube_dl/extractor/comedycentral.py
youtube_dl/extractor/mtv.py

index 8bd58977493bf2445e768604d8953b0474287918..816e0bfb6f7ed5e23a98aa18f092295fca509d4a 100644 (file)
@@ -57,7 +57,7 @@ class ComedyCentralFullEpisodesIE(MTVServicesInfoExtractor):
         feed = self._download_json(video_zone['feed'], playlist_id)
         mgid = feed['result']['data']['id']
 
-        videos_info = self._get_videos_info(mgid, use_hls=True)
+        videos_info = self._get_videos_info(mgid)
 
         return videos_info
 
index 7c45c77386f594bd3e3e589d9a8e57d5c332ab9c..d27c6686ba2c2d9f8d525e54e5a1c399c17c1a94 100644 (file)
@@ -123,7 +123,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
             } for typographic in transcript.findall('./typographic')]
         return subtitles
 
-    def _get_video_info(self, itemdoc, use_hls=False):
+    def _get_video_info(self, itemdoc, use_hls=True):
         uri = itemdoc.find('guid').text
         video_id = self._id_from_uri(uri)
         self.report_extraction(video_id)
@@ -193,13 +193,13 @@ class MTVServicesInfoExtractor(InfoExtractor):
             data['lang'] = self._LANG
         return data
 
-    def _get_videos_info(self, uri, use_hls=False):
+    def _get_videos_info(self, uri, use_hls=True):
         video_id = self._id_from_uri(uri)
         feed_url = self._get_feed_url(uri)
         info_url = update_url_query(feed_url, self._get_feed_query(uri))
         return self._get_videos_info_from_url(info_url, video_id, use_hls)
 
-    def _get_videos_info_from_url(self, url, video_id, use_hls=False):
+    def _get_videos_info_from_url(self, url, video_id, use_hls=True):
         idoc = self._download_xml(
             url, video_id,
             'Downloading info', transform_source=fix_xml_ampersands)