Sergey M․
8 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
4 additions and
3 deletions
-
youtube_dl/extractor/yandexmusic.py
|
|
@ -18,9 +18,10 @@ from ..utils import ( |
|
|
|
class YandexMusicBaseIE(InfoExtractor): |
|
|
|
@staticmethod |
|
|
|
def _handle_error(response): |
|
|
|
error = response.get('error') |
|
|
|
if error: |
|
|
|
raise ExtractorError(error, expected=True) |
|
|
|
if isinstance(response, dict): |
|
|
|
error = response.get('error') |
|
|
|
if error: |
|
|
|
raise ExtractorError(error, expected=True) |
|
|
|
|
|
|
|
def _download_webpage(self, *args, **kwargs): |
|
|
|
webpage = super(YandexMusicBaseIE, self)._download_webpage(*args, **kwargs) |
|
|
|