mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
[Viddler] Fix errors
This commit is contained in:
parent
847e96d70a
commit
558052ee16
@ -2595,11 +2595,11 @@ class GenericIE(InfoExtractor):
|
|||||||
if mobj is not None:
|
if mobj is not None:
|
||||||
return self.url_result(mobj.group('url'))
|
return self.url_result(mobj.group('url'))
|
||||||
|
|
||||||
viddler_id = self._search_regex(
|
mobj = re.search(
|
||||||
r'<div[^>]+class=(["\'])viddler-auto-embed\1[^>]+data-video-id=([\'"])(?P<id>[^\'"]+)',
|
r'<div[^>]+class=(["\'])viddler-auto-embed\1[^>]+data-video-id=([\'"])(?P<id>[^\'"]+)',
|
||||||
webpage, 'viddler_id', group='id')
|
webpage)
|
||||||
if viddler_id is not None:
|
if mobj is not None:
|
||||||
return ViddlerIE._build_url_result(viddler_id)
|
return ViddlerIE._build_url_result(mobj.group('id'))
|
||||||
|
|
||||||
# Look for NYTimes player
|
# Look for NYTimes player
|
||||||
mobj = re.search(
|
mobj = re.search(
|
||||||
|
Loading…
Reference in New Issue
Block a user