about summary refs log tree commit diff
path: root/youtube_dl/extractor/xiami.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-04-29 22:49:47 +0700
committerSergey M․ <dstftw@gmail.com>2018-04-29 22:54:52 +0700
commite5eadfa82f10bda43294d1da85024eec29c7973f (patch)
treecb4d0e3679f654c22ebace9db27ef7d00b8c2ada /youtube_dl/extractor/xiami.py
parent30226342ab346263b684170c4ce7d5266fec212e (diff)
downloadyoutube-dl-e5eadfa82f10bda43294d1da85024eec29c7973f.tar.gz
youtube-dl-e5eadfa82f10bda43294d1da85024eec29c7973f.tar.xz
youtube-dl-e5eadfa82f10bda43294d1da85024eec29c7973f.zip
[udemy,xiami,yandexmusic] Override _download_webpage_handle instead of _download_webpage
Diffstat (limited to 'youtube_dl/extractor/xiami.py')
-rw-r--r--youtube_dl/extractor/xiami.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/xiami.py b/youtube_dl/extractor/xiami.py
index 7f871c8ec..8333fb534 100644
--- a/youtube_dl/extractor/xiami.py
+++ b/youtube_dl/extractor/xiami.py
@@ -9,8 +9,8 @@ from ..utils import int_or_none
 class XiamiBaseIE(InfoExtractor):
     _API_BASE_URL = 'http://www.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