mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-09 07:57:46 +08:00
[tele5] Fix extraction of videos without playlist
This commit is contained in:
parent
21631596ea
commit
4599b560a0
@ -106,8 +106,9 @@ class Tele5IE(InfoExtractor):
|
|||||||
{'force_singlevideo': True}),
|
{'force_singlevideo': True}),
|
||||||
})
|
})
|
||||||
# TODO: use something other than a regex?
|
# TODO: use something other than a regex?
|
||||||
title = self._html_search_regex("<h1>([^<]+)</h1>", webpage, 'playlist title')
|
title = re.search("<h1>([^<]+)</h1>", webpage, 0)
|
||||||
return self.playlist_result(entries, playlist_title=title)
|
if title:
|
||||||
|
return self.playlist_result(entries, playlist_title=title.group(1))
|
||||||
|
|
||||||
def extract_id(pattern, name, default=NO_DEFAULT):
|
def extract_id(pattern, name, default=NO_DEFAULT):
|
||||||
return self._html_search_regex(
|
return self._html_search_regex(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user