aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-01-10 22:25:33 +0700
committerSergey M․ <dstftw@gmail.com>2017-01-10 22:25:33 +0700
commit2032d935d1d99c83e28585ca4c20415dcab56701 (patch)
tree5f42a3ad89a02af4f98c257e38405bf695fd616b
parent31ea2ad89da64247d894e739e2c7c0f7e44411bd (diff)
[mtv] Add default value for use_hls
These methods are used across codebase with old number of arguments
-rw-r--r--youtube_dl/extractor/mtv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py
index e1f1f8fa4..49c192e1a 100644
--- a/youtube_dl/extractor/mtv.py
+++ b/youtube_dl/extractor/mtv.py
@@ -123,7 +123,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
} for typographic in transcript.findall('./typographic')]
return subtitles
- def _get_video_info(self, itemdoc, use_hls):
+ def _get_video_info(self, itemdoc, use_hls=False):
uri = itemdoc.find('guid').text
video_id = self._id_from_uri(uri)
self.report_extraction(video_id)
@@ -199,7 +199,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
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):
+ def _get_videos_info_from_url(self, url, video_id, use_hls=False):
idoc = self._download_xml(
url, video_id,
'Downloading info', transform_source=fix_xml_ampersands)