mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-18 06:39:46 +00:00
Apply suggestions from code review
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
fe0d8cd782
commit
fbb8396758
@ -126,15 +126,15 @@ class TvwIE(InfoExtractor):
|
|||||||
|
|
||||||
|
|
||||||
class TvwTvChannelsIE(InfoExtractor):
|
class TvwTvChannelsIE(InfoExtractor):
|
||||||
IE_NAME = 'Tvw:TvChannels'
|
IE_NAME = 'tvw:tvchannels'
|
||||||
_VALID_URL = r'https?://(?:www\.)?tvw\.org/tvchannels/(?P<id>[^/?#]+)'
|
_VALID_URL = r'https?://(?:www\.)?tvw\.org/tvchannels/(?P<id>[^/?#]+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://tvw.org/tvchannels/air/',
|
'url': 'https://tvw.org/tvchannels/air/',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'air',
|
'id': 'air',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': r're:^TVW Cable Channel Live Stream',
|
'title': r're:TVW Cable Channel Live Stream',
|
||||||
'thumbnail': r're:^https?://.*\.(?:jpe?g|png)$',
|
'thumbnail': r're:https?://.+/.+\.(?:jpe?g|png)$',
|
||||||
'live_status': 'is_live',
|
'live_status': 'is_live',
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
@ -142,8 +142,8 @@ class TvwTvChannelsIE(InfoExtractor):
|
|||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'tvw2',
|
'id': 'tvw2',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': r're:^TVW-2 Broadcast Channel',
|
'title': r're:TVW-2 Broadcast Channel',
|
||||||
'thumbnail': r're:^https?://.*\.(?:jpe?g|png)$',
|
'thumbnail': r're:https?://.+/.+\.(?:jpe?g|png)$',
|
||||||
'live_status': 'is_live',
|
'live_status': 'is_live',
|
||||||
},
|
},
|
||||||
}]
|
}]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user