mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-07 04:10:12 +08:00
[tele5] Add test that requires ?ve_id= support
This commit is contained in:
parent
4599b560a0
commit
ad40ac7238
@ -55,6 +55,21 @@ class Tele5IE(InfoExtractor):
|
||||
'title': 'Timeless',
|
||||
},
|
||||
'playlist_count': 6,
|
||||
}, {
|
||||
'url': 'https://www.tele5.de/kalkofes-welt/best-of-clips/worst-of-internet/?ve_id=dm2hJgJp',
|
||||
'info_dict': {
|
||||
'id': 'dm2hJgJp',
|
||||
'ext': 'mp4',
|
||||
'title': 'Freshtorge - Sandra trifft Frau Merkel',
|
||||
'upload_date': '20200326',
|
||||
'description': 'Freshtorge - Sandra trifft Frau Merkel',
|
||||
'timestamp': 1585185161,
|
||||
'duration': 170.0,
|
||||
},
|
||||
'params': {
|
||||
'noplaylist': True,
|
||||
'skip_download': True,
|
||||
},
|
||||
}, {
|
||||
'url': 'https://www.tele5.de/filme/making-of/avengers-endgame/',
|
||||
'only_matching': True,
|
||||
@ -66,7 +81,6 @@ class Tele5IE(InfoExtractor):
|
||||
def _real_extract(self, url):
|
||||
url, smuggled_data = unsmuggle_url(url, {})
|
||||
|
||||
# TODO: do we really need this?
|
||||
qs = compat_urlparse.parse_qs(compat_urlparse.urlparse(url).query)
|
||||
video_id = (qs.get('vid') or qs.get('ve_id') or [None])[0]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user