1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-27 02:44:33 +01:00

playerglobewien - simplify title extractor

This commit is contained in:
Oneboy1979 2020-04-12 10:14:26 +02:00
parent c3d2a27c8d
commit a734819a6c

View File

@ -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>(?P<title>.+?)</title>', webpage, 'title', group='title')
title = self._og_search_title(webpage)
title = re.sub(r'^(Globe Wien VOD -|Hader VOD -)\s*', '', title)
streamurl = self._download_json("https://player.globe.wien/api/playout?vodId=" + video_id,