From 0b817e51c210152cbd04c792db76395d5c9507fd Mon Sep 17 00:00:00 2001 From: dirkf Date: Mon, 18 Nov 2024 02:48:29 +0000 Subject: [PATCH] Linty --- youtube_dl/extractor/voe.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/voe.py b/youtube_dl/extractor/voe.py index 40c2c9436..adef0ab4b 100644 --- a/youtube_dl/extractor/voe.py +++ b/youtube_dl/extractor/voe.py @@ -32,15 +32,14 @@ class VOEIE(InfoExtractor): 'https://voe.sx/e/%s' % video_id, video_id) player_url = self._search_regex( - r'''("|')(?Phttps://(?!voe\.sx/)[^/]+%s)\1\s*;''' % (path,), + r'''("|')(?Phttps://(?!voe\.sx/)[^/]+%s)\1\s*;''' % (video_path,), webpage, 'redirect', group='url', default=None) if player_url: webpage = self._download_webpage( player_url, video_id, note='Redirecting to player page') - sources = self._search_json( - r'\bsources\s*=', webpage, 'sources', video_id, transform_source=js_to_json) + r'\bsources\s*=', webpage, 'sources', video_id, transform_source=js_to_json) title = self._search_regex( r'(?:Watch\s+)?(?P<title>.+?)(?:-\s+VOE\s+\|.+)?',