From c3d2a27c8d5238d2dc117114bbb28645a04e10d3 Mon Sep 17 00:00:00 2001 From: Oneboy1979 Date: Sun, 12 Apr 2020 10:03:03 +0200 Subject: [PATCH] playerglobewien - fix regex to according coding convention --- youtube_dl/extractor/playerglobewien.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/playerglobewien.py b/youtube_dl/extractor/playerglobewien.py index 91edfdb05..5733f0a8d 100755 --- a/youtube_dl/extractor/playerglobewien.py +++ b/youtube_dl/extractor/playerglobewien.py @@ -6,7 +6,7 @@ from .common import InfoExtractor class PlayerGlobeWienIE(InfoExtractor): - _VALID_URL = r'https?://player.(globe.wien|hader.at)/(globe-wien|hader)/(?P.*)' + _VALID_URL = r'https?://player.(?:globe.wien|hader.at)/(?:globe-wien|hader)/(?P.*)' _TESTS = [ { 'url': 'https://player.globe.wien/globe-wien/corona-podcast-teil-4', @@ -69,7 +69,7 @@ class PlayerGlobeWienIE(InfoExtractor): print(video_id) webpage = self._download_webpage(url, video_id) formats = [] - title = self._html_search_regex(r'(.+?)', webpage, 'title') + title = self._html_search_regex(r'(?P<title>.+?)', webpage, 'title', group='title') title = re.sub(r'^(Globe Wien VOD -|Hader VOD -)\s*', '', title) streamurl = self._download_json("https://player.globe.wien/api/playout?vodId=" + video_id,