From 558052ee16c5d0b48b17081067074e1a6324a855 Mon Sep 17 00:00:00 2001 From: jgilf Date: Thu, 28 May 2020 15:39:30 +1000 Subject: [PATCH] [Viddler] Fix errors --- youtube_dl/extractor/generic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index ec9efe5cd..f540be72e 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -2595,11 +2595,11 @@ class GenericIE(InfoExtractor): if mobj is not None: return self.url_result(mobj.group('url')) - viddler_id = self._search_regex( + mobj = re.search( r']+class=(["\'])viddler-auto-embed\1[^>]+data-video-id=([\'"])(?P[^\'"]+)', - webpage, 'viddler_id', group='id') - if viddler_id is not None: - return ViddlerIE._build_url_result(viddler_id) + webpage) + if mobj is not None: + return ViddlerIE._build_url_result(mobj.group('id')) # Look for NYTimes player mobj = re.search(