[vlive] improve extraction for geo-restricted videos
authorRemita Amine <remitamine@gmail.com>
Wed, 25 Nov 2020 10:40:37 +0000 (11:40 +0100)
committerRemita Amine <remitamine@gmail.com>
Wed, 25 Nov 2020 10:40:37 +0000 (11:40 +0100)
youtube_dl/extractor/extractors.py
youtube_dl/extractor/vlive.py

index 688437dc26ad816429abeca03a949ee16fb05406..f7757b4f465c2160662556caecfbce86cb46edf9 100644 (file)
@@ -1375,6 +1375,7 @@ from .vk import (
 )
 from .vlive import (
     VLiveIE,
+    VLivePostIE,
     VLiveChannelIE,
 )
 from .vodlocker import VodlockerIE
index 111b8c1c36f86c712c04398b1a7063b943920dfe..223709b1e29d0ada9ae10d3a50c47133a864510a 100644 (file)
@@ -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: