mirror of
https://codeberg.org/polarisfm/youtube-dl.git
synced 2024-12-27 10:06:45 +00:00
[zdf:channel] Add more tests
This commit is contained in:
parent
67ba388efb
commit
c24044635b
1 changed files with 11 additions and 2 deletions
|
@ -132,13 +132,22 @@ class ZDFIE(InfoExtractor):
|
||||||
|
|
||||||
class ZDFChannelIE(InfoExtractor):
|
class ZDFChannelIE(InfoExtractor):
|
||||||
_VALID_URL = r'(?:zdf:topic:|https?://www\.zdf\.de/ZDFmediathek(?:#)?/.*kanaluebersicht/(?:[^/]+/)?)(?P<id>[0-9]+)'
|
_VALID_URL = r'(?:zdf:topic:|https?://www\.zdf\.de/ZDFmediathek(?:#)?/.*kanaluebersicht/(?:[^/]+/)?)(?P<id>[0-9]+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'http://www.zdf.de/ZDFmediathek#/kanaluebersicht/1586442/sendung/Titanic',
|
'url': 'http://www.zdf.de/ZDFmediathek#/kanaluebersicht/1586442/sendung/Titanic',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '1586442',
|
'id': '1586442',
|
||||||
},
|
},
|
||||||
'playlist_count': 3,
|
'playlist_count': 3,
|
||||||
}
|
}, {
|
||||||
|
'url': 'http://www.zdf.de/ZDFmediathek/kanaluebersicht/aktuellste/332',
|
||||||
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'http://www.zdf.de/ZDFmediathek/kanaluebersicht/meist-gesehen/332',
|
||||||
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'http://www.zdf.de/ZDFmediathek/kanaluebersicht/_/1798716?bc=nrt;nrm?flash=off',
|
||||||
|
'only_matching': True,
|
||||||
|
}]
|
||||||
_PAGE_SIZE = 50
|
_PAGE_SIZE = 50
|
||||||
|
|
||||||
def _fetch_page(self, channel_id, page):
|
def _fetch_page(self, channel_id, page):
|
||||||
|
|
Loading…
Reference in a new issue