diff options
author | exwm <thighsman@protonmail.com> | 2020-11-01 15:40:47 -0500 |
---|---|---|
committer | exwm <thighsman@protonmail.com> | 2020-11-02 18:35:44 -0500 |
commit | 1923b146b378aed234f3cc91a61eb9c5aec2f684 (patch) | |
tree | 4f2729157cc0014c85953567a8e91b58e3a64ffe | |
parent | 5dcfd2508add09ab46d730f4802ce6da73edafaf (diff) | |
download | hypervideo-pre-1923b146b378aed234f3cc91a61eb9c5aec2f684.tar.lz hypervideo-pre-1923b146b378aed234f3cc91a61eb9c5aec2f684.tar.xz hypervideo-pre-1923b146b378aed234f3cc91a61eb9c5aec2f684.zip |
[vlive] add: support new channel url format
-rw-r--r-- | youtube_dlc/extractor/vlive.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/youtube_dlc/extractor/vlive.py b/youtube_dlc/extractor/vlive.py index abbcfb32b..98c405f21 100644 --- a/youtube_dlc/extractor/vlive.py +++ b/youtube_dlc/extractor/vlive.py @@ -220,15 +220,22 @@ class VLiveIE(NaverBaseIE): class VLiveChannelIE(InfoExtractor): IE_NAME = 'vlive:channel' - _VALID_URL = r'https?://channels\.vlive\.tv/(?P<id>[0-9A-Z]+)' - _TEST = { - 'url': 'http://channels.vlive.tv/FCD4B', + _VALID_URL = r'https?://(?:(?:www|m)\.)?(?:channels\.vlive\.tv/|vlive\.tv/channels?/)(?P<id>[0-9A-Z]+)' + _TESTS = [{ + 'url': 'https://channels.vlive.tv/FCD4B', + 'info_dict': { + 'id': 'FCD4B', + 'title': 'MAMAMOO', + }, + 'playlist_mincount': 110 + }, { + 'url': 'https://www.vlive.tv/channel/FCD4B', 'info_dict': { 'id': 'FCD4B', 'title': 'MAMAMOO', }, 'playlist_mincount': 110 - } + }] _APP_ID = '8c6cc7b45d2568fb668be6e05b6e5a3b' def _real_extract(self, url): |