mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 05:47:26 +08:00
Support for untitled videos (Issue #7186)
title is set to 'untitled' rather than None, which throws an error
This commit is contained in:
parent
fafc7950e2
commit
e5b81a68ea
@ -29,6 +29,8 @@ class JeuxVideoIE(InfoExtractor):
|
|||||||
title = mobj.group(1)
|
title = mobj.group(1)
|
||||||
webpage = self._download_webpage(url, title)
|
webpage = self._download_webpage(url, title)
|
||||||
title = self._html_search_meta('name', webpage)
|
title = self._html_search_meta('name', webpage)
|
||||||
|
if title == None:
|
||||||
|
title = 'untitled'
|
||||||
config_url = self._html_search_regex(
|
config_url = self._html_search_regex(
|
||||||
r'data-src="(/contenu/medias/video.php.*?)"',
|
r'data-src="(/contenu/medias/video.php.*?)"',
|
||||||
webpage, 'config URL')
|
webpage, 'config URL')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user