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

playerglobewien - split tests for audio and video

This commit is contained in:
Stefan 2020-04-09 17:34:18 +02:00
parent 29f257fa25
commit f3fbacb6d8

View File

@ -6,18 +6,27 @@ from .common import InfoExtractor
class PlayerGlobeWienIE(InfoExtractor):
_VALID_URL = r'https?://player.globe.wien/globe-wien/(?P<id>.*)'
_TEST = {
_TESTS = [{
'url': 'https://player.globe.wien/globe-wien/corona-podcast-teil-4',
'info_dict': {
'id': 'corona-podcast-teil-4',
'ext': 'mp4',
'title': 'Globe Wien VOD - Eckel & Niavarani & Sarsam - Im Endspurt versagt',
'url': 'https://player.globe.wien/globe-wien/corona-podcast-teil-4',
},
'params': {
'format': 'bestvideo+bestaudio/best',
'format': 'bestvideo',
}
}
}, {
'url': 'https://player.globe.wien/globe-wien/corona-podcast-teil-4',
'info_dict': {
'id': 'corona-podcast-teil-4',
'ext': 'mp4',
'title': 'Globe Wien VOD - Eckel & Niavarani & Sarsam - Im Endspurt versagt',
},
'params': {
'format': 'bestaudio',
}
}]
def _real_extract(self, url):
video_id = self._match_id(url)