mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-23 00:54:31 +01:00
[tunein] Fix generic tunein test and simplify regex
This commit is contained in:
parent
a5fce76e2f
commit
c45f410b3a
@ -1020,8 +1020,8 @@ class GenericIE(InfoExtractor):
|
||||
'info_dict': {
|
||||
'id': '204146',
|
||||
'ext': 'mp3',
|
||||
'title': 'CNRV',
|
||||
'location': 'Paris, France',
|
||||
'title': 're:CNRV',
|
||||
'description': 'md5:298ece12650f386bebdf3c3499a4f846',
|
||||
'is_live': True,
|
||||
},
|
||||
'params': {
|
||||
|
@ -95,7 +95,7 @@ class TuneInStationIE(TuneInBaseIE):
|
||||
'url': 'http://tunein.com/radio/Jazz24-885-s34682/',
|
||||
'info_dict': {
|
||||
'id': '34682',
|
||||
'title': 're:.*Jazz24.*',
|
||||
'title': 're:Jazz24',
|
||||
'description': 'md5:c94dad268809130da5c91b0760f366a1',
|
||||
'ext': 'mp3'
|
||||
},
|
||||
@ -156,7 +156,8 @@ class TuneInProgramIE(TuneInBaseIE):
|
||||
for entry in self._process_page(page):
|
||||
yield entry
|
||||
|
||||
has_more = try_get(page,
|
||||
has_more = try_get(
|
||||
page,
|
||||
lambda p: p['Paging']['Next'], compat_str) is not None
|
||||
|
||||
if has_more:
|
||||
@ -201,7 +202,7 @@ class TuneInShortenerIE(InfoExtractor):
|
||||
'url': 'http://tun.in/ser7s',
|
||||
'info_dict': {
|
||||
'id': '34682',
|
||||
'title': 're:.*Jazz24.*',
|
||||
'title': 're:Jazz24',
|
||||
'description': 'md5:c94dad268809130da5c91b0760f366a1',
|
||||
'ext': 'mp3'
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user