1
0
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:
FliegendeWurst 2020-04-12 13:29:34 +02:00
parent 21631596ea
commit 4599b560a0
No known key found for this signature in database
GPG Key ID: CA38E82B54B32A88

View File

@ -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(