mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 05:47:24 +01:00
[tvbanywherena] Fixes
This commit is contained in:
parent
b04c017886
commit
a20805fc60
@ -20,7 +20,7 @@ def _get_program_url(lang, pid):
|
|||||||
|
|
||||||
|
|
||||||
class TvbAnywhereNaIE(InfoExtractor):
|
class TvbAnywhereNaIE(InfoExtractor):
|
||||||
_VALID_URL = r'https://(?:www\.)?tvbanywherena\.com/(?P<lang>cantonese|english|viet)/videos/[^/]+/(?P<id>\d+)'
|
_VALID_URL = r'https?://(?:www\.)?tvbanywherena\.com/(?P<lang>cantonese|english|viet)/videos/[^/]+/(?P<id>\d+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.tvbanywherena.com/cantonese/videos/437-SuperTrioShow/6007674088001',
|
'url': 'https://www.tvbanywherena.com/cantonese/videos/437-SuperTrioShow/6007674088001',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -40,21 +40,22 @@ class TvbAnywhereNaIE(InfoExtractor):
|
|||||||
'release_year': None,
|
'release_year': None,
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://tvbanywherena.com/english/videos/362-ForensicHeroesV/1749048584749039545',
|
'url': 'https://tvbanywherena.com/english/videos/221-BirthOfAHero/5998951339001',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '1749048584749039545',
|
'id': '5998951339001',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'Forensic Heroes V Episode 02',
|
'title': 'Birth Of A Hero Episode 04',
|
||||||
'upload_date': '20221111',
|
'description': 'WAN-LUNG is severely beaten up and lapses into a coma. After regaining his consciousness, he pretends lunacy on purpose...',
|
||||||
'timestamp': 1668193134,
|
'upload_date': '20190206',
|
||||||
|
'timestamp': 1549419051,
|
||||||
'uploader_id': '5324042807001',
|
'uploader_id': '5324042807001',
|
||||||
'series': 'Forensic Heroes V',
|
'series': 'Birth Of A Hero',
|
||||||
'duration': 2579.264,
|
'duration': 2593.984,
|
||||||
'tags': ['forensicheroesven'],
|
'tags': ['en_birthofahero'],
|
||||||
'genres': ['Crime', 'Action'],
|
'genres': ['Historical'],
|
||||||
'cast': [''],
|
'cast': ['Edwin Siu', 'Ben Wong', 'Grace Chan', 'David Chiang '],
|
||||||
'thumbnail': r're:^https?://.*\.jpg$',
|
'thumbnail': r're:^https?://.*\.jpg$',
|
||||||
'release_year': 2022,
|
'release_year': 2018,
|
||||||
},
|
},
|
||||||
}]
|
}]
|
||||||
BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/%s/%s_default/index.html?videoId=%s'
|
BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/%s/%s_default/index.html?videoId=%s'
|
||||||
@ -82,7 +83,7 @@ def _real_extract(self, url):
|
|||||||
}),
|
}),
|
||||||
'ie_key': 'BrightcoveNew',
|
'ie_key': 'BrightcoveNew',
|
||||||
'title': f'{seriesname} {episodename}',
|
'title': f'{seriesname} {episodename}',
|
||||||
'description': get_element_by_class(episodeinfo, 'episodeDescription'),
|
'description': get_element_by_class('episodeDescription', episodeinfo),
|
||||||
'series': seriesname,
|
'series': seriesname,
|
||||||
'genres': program.get('genres', []),
|
'genres': program.get('genres', []),
|
||||||
'cast': program.get('char', []),
|
'cast': program.get('char', []),
|
||||||
@ -91,7 +92,7 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
|
|
||||||
class TvbAnywhereNaSeriesIE(InfoExtractor):
|
class TvbAnywhereNaSeriesIE(InfoExtractor):
|
||||||
_VALID_URL = r'https://(?:www\.)?tvbanywherena\.com/(?P<lang>cantonese|english|viet)/series/(?P<id>\d+)-'
|
_VALID_URL = r'https?://(?:www\.)?tvbanywherena\.com/(?P<lang>cantonese|english|viet)/series/(?P<id>\d+)-'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://tvbanywherena.com/cantonese/series/2594-ForensicHeroesV',
|
'url': 'https://tvbanywherena.com/cantonese/series/2594-ForensicHeroesV',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
|
Loading…
Reference in New Issue
Block a user