mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 11:41:52 +00:00
[mtv] Add default value for use_hls
These methods are used across codebase with old number of arguments
This commit is contained in:
parent
31ea2ad89d
commit
2032d935d1
1 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
|
||||||
} for typographic in transcript.findall('./typographic')]
|
} for typographic in transcript.findall('./typographic')]
|
||||||
return subtitles
|
return subtitles
|
||||||
|
|
||||||
def _get_video_info(self, itemdoc, use_hls):
|
def _get_video_info(self, itemdoc, use_hls=False):
|
||||||
uri = itemdoc.find('guid').text
|
uri = itemdoc.find('guid').text
|
||||||
video_id = self._id_from_uri(uri)
|
video_id = self._id_from_uri(uri)
|
||||||
self.report_extraction(video_id)
|
self.report_extraction(video_id)
|
||||||
|
@ -199,7 +199,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
|
||||||
info_url = update_url_query(feed_url, self._get_feed_query(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)
|
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(
|
idoc = self._download_xml(
|
||||||
url, video_id,
|
url, video_id,
|
||||||
'Downloading info', transform_source=fix_xml_ampersands)
|
'Downloading info', transform_source=fix_xml_ampersands)
|
||||||
|
|
Loading…
Reference in a new issue