mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-10 04:42:57 +08:00
Properly handle missing video_id (round 2)
This is what happens when you don't read the docs, kids. Fixes #2715 (I think).
This commit is contained in:
parent
650d688d10
commit
5c83f37658
@ -39,7 +39,7 @@ class TeamcocoIE(InfoExtractor):
|
||||
webpage = self._download_webpage(url, url_title)
|
||||
|
||||
video_id = mobj.group("video_id")
|
||||
if video_id == '':
|
||||
if video_id == '' or video_id == None:
|
||||
video_id = self._html_search_regex(
|
||||
r'<article class="video" data-id="(\d+?)"',
|
||||
webpage, 'video id')
|
||||
|
Loading…
Reference in New Issue
Block a user