diff options
author | Remita Amine <remitamine@gmail.com> | 2020-11-25 11:40:37 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2020-11-25 11:40:37 +0100 |
commit | 3a78198a96ffcb989d1302294f6a747c6147b418 (patch) | |
tree | e76a6888d7cd747b4716face25cbbfa7b6a2c56d /youtube_dl | |
parent | 836c810716cca64673b2cb85a2b489f2dd0a15ef (diff) |
[vlive] improve extraction for geo-restricted videos
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/extractors.py | 1 | ||||
-rw-r--r-- | youtube_dl/extractor/vlive.py | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index 688437dc2..f7757b4f4 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -1375,6 +1375,7 @@ from .vk import ( ) from .vlive import ( VLiveIE, + VLivePostIE, VLiveChannelIE, ) from .vodlocker import VodlockerIE diff --git a/youtube_dl/extractor/vlive.py b/youtube_dl/extractor/vlive.py index 111b8c1c3..223709b1e 100644 --- a/youtube_dl/extractor/vlive.py +++ b/youtube_dl/extractor/vlive.py @@ -68,6 +68,10 @@ class VLiveIE(VLiveBaseIE): }, { 'url': 'https://www.vlive.tv/embed/1326', 'only_matching': True, + }, { + # works only with gcc=KR + 'url': 'https://www.vlive.tv/video/225019', + 'only_matching': True, }] def _real_initialize(self): @@ -102,7 +106,7 @@ class VLiveIE(VLiveBaseIE): raise ExtractorError('Unable to log in', expected=True) def _call_api(self, path_template, video_id, fields=None): - query = {'appId': self._APP_ID} + query = {'appId': self._APP_ID, 'gcc': 'KR'} if fields: query['fields'] = fields try: |