mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 02:25:11 +00:00
[arte] remove two typos
This commit is contained in:
parent
d1c252048b
commit
ddf49c6344
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ def _real_extract(self, url):
|
||||||
lang = mobj.group('lang')
|
lang = mobj.group('lang')
|
||||||
return self._extract_liveweb(url, name, lang)
|
return self._extract_liveweb(url, name, lang)
|
||||||
|
|
||||||
if re.search(self._LIVE_URL, video_id) is not None:
|
if re.search(self._LIVE_URL, url) is not None:
|
||||||
raise ExtractorError(u'Arte live streams are not yet supported, sorry')
|
raise ExtractorError(u'Arte live streams are not yet supported, sorry')
|
||||||
# self.extractLiveStream(url)
|
# self.extractLiveStream(url)
|
||||||
# return
|
# return
|
||||||
|
@ -115,7 +115,7 @@ def _extract_liveweb(self, url, name, lang):
|
||||||
event_doc = config_doc.find('event')
|
event_doc = config_doc.find('event')
|
||||||
url_node = event_doc.find('video').find('urlHd')
|
url_node = event_doc.find('video').find('urlHd')
|
||||||
if url_node is None:
|
if url_node is None:
|
||||||
url_node = video_doc.find('urlSd')
|
url_node = event_doc.find('urlSd')
|
||||||
|
|
||||||
return {'id': video_id,
|
return {'id': video_id,
|
||||||
'title': event_doc.find('name%s' % lang.capitalize()).text,
|
'title': event_doc.find('name%s' % lang.capitalize()).text,
|
||||||
|
|
Loading…
Reference in a new issue