]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/xiami.py
Prepare new version
[youtubedl] / youtube_dl / extractor / xiami.py
index 7f871c8ec7c65b8e969517165126824342dbf2e4..618da8382bcbbb3800dc553c80edc2c74fea5c5e 100644 (file)
@@ -7,10 +7,10 @@ from ..utils import int_or_none
 
 
 class XiamiBaseIE(InfoExtractor):
 
 
 class XiamiBaseIE(InfoExtractor):
-    _API_BASE_URL = 'http://www.xiami.com/song/playlist/cat/json/id'
+    _API_BASE_URL = 'https://emumo.xiami.com/song/playlist/cat/json/id'
 
 
-    def _download_webpage(self, *args, **kwargs):
-        webpage = super(XiamiBaseIE, self)._download_webpage(*args, **kwargs)
+    def _download_webpage_handle(self, *args, **kwargs):
+        webpage = super(XiamiBaseIE, self)._download_webpage_handle(*args, **kwargs)
         if '>Xiami is currently not available in your country.<' in webpage:
             self.raise_geo_restricted('Xiami is currently not available in your country')
         return webpage
         if '>Xiami is currently not available in your country.<' in webpage:
             self.raise_geo_restricted('Xiami is currently not available in your country')
         return webpage