mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-11 17:06:35 +02:00
[vlive] add: support new channel url format
This commit is contained in:
parent
5dcfd2508a
commit
1923b146b3
@ -220,15 +220,22 @@ def _download_init_page(self, video_id):
|
|||||||
|
|
||||||
class VLiveChannelIE(InfoExtractor):
|
class VLiveChannelIE(InfoExtractor):
|
||||||
IE_NAME = 'vlive:channel'
|
IE_NAME = 'vlive:channel'
|
||||||
_VALID_URL = r'https?://channels\.vlive\.tv/(?P<id>[0-9A-Z]+)'
|
_VALID_URL = r'https?://(?:(?:www|m)\.)?(?:channels\.vlive\.tv/|vlive\.tv/channels?/)(?P<id>[0-9A-Z]+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'http://channels.vlive.tv/FCD4B',
|
'url': 'https://channels.vlive.tv/FCD4B',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'FCD4B',
|
'id': 'FCD4B',
|
||||||
'title': 'MAMAMOO',
|
'title': 'MAMAMOO',
|
||||||
},
|
},
|
||||||
'playlist_mincount': 110
|
'playlist_mincount': 110
|
||||||
}
|
}, {
|
||||||
|
'url': 'https://www.vlive.tv/channel/FCD4B',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'FCD4B',
|
||||||
|
'title': 'MAMAMOO',
|
||||||
|
},
|
||||||
|
'playlist_mincount': 110
|
||||||
|
}]
|
||||||
_APP_ID = '8c6cc7b45d2568fb668be6e05b6e5a3b'
|
_APP_ID = '8c6cc7b45d2568fb668be6e05b6e5a3b'
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
Reference in New Issue
Block a user