1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 08:54:33 +01:00

playerglobewien - fix regex to according coding convention

This commit is contained in:
Oneboy1979 2020-04-12 10:03:03 +02:00
parent 873b80d0ff
commit c3d2a27c8d

View File

@ -6,7 +6,7 @@ from .common import InfoExtractor
class PlayerGlobeWienIE(InfoExtractor):
_VALID_URL = r'https?://player.(globe.wien|hader.at)/(globe-wien|hader)/(?P<id>.*)'
_VALID_URL = r'https?://player.(?:globe.wien|hader.at)/(?:globe-wien|hader)/(?P<id>.*)'
_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'<title>(.+?)</title>', webpage, 'title')
title = self._html_search_regex(r'<title>(?P<title>.+?)</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,