mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-07 04:40:02 +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}),
|
||||
})
|
||||
# TODO: use something other than a regex?
|
||||
title = self._html_search_regex("<h1>([^<]+)</h1>", webpage, 'playlist title')
|
||||
return self.playlist_result(entries, playlist_title=title)
|
||||
title = re.search("<h1>([^<]+)</h1>", webpage, 0)
|
||||
if title:
|
||||
return self.playlist_result(entries, playlist_title=title.group(1))
|
||||
|
||||
def extract_id(pattern, name, default=NO_DEFAULT):
|
||||
return self._html_search_regex(
|
||||
|
Loading…
x
Reference in New Issue
Block a user