mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-23 17:04:33 +01:00
playerglobewien - fix regex to according coding convention
This commit is contained in:
parent
873b80d0ff
commit
c3d2a27c8d
@ -6,7 +6,7 @@ from .common import InfoExtractor
|
|||||||
|
|
||||||
|
|
||||||
class PlayerGlobeWienIE(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 = [
|
_TESTS = [
|
||||||
{
|
{
|
||||||
'url': 'https://player.globe.wien/globe-wien/corona-podcast-teil-4',
|
'url': 'https://player.globe.wien/globe-wien/corona-podcast-teil-4',
|
||||||
@ -69,7 +69,7 @@ class PlayerGlobeWienIE(InfoExtractor):
|
|||||||
print(video_id)
|
print(video_id)
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
formats = []
|
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)
|
title = re.sub(r'^(Globe Wien VOD -|Hader VOD -)\s*', '', title)
|
||||||
|
|
||||||
streamurl = self._download_json("https://player.globe.wien/api/playout?vodId=" + video_id,
|
streamurl = self._download_json("https://player.globe.wien/api/playout?vodId=" + video_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user