Update yandexmusic.py

This commit is contained in:
Sergey M 2019-07-14 02:32:05 +07:00 committed by GitHub
parent 69d2fd73de
commit e8a7f124d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,10 +5,7 @@ import re
import hashlib import hashlib
from .common import InfoExtractor from .common import InfoExtractor
from ..compat import ( from ..compat import compat_str
compat_str,
compat_basestring,
)
from ..utils import ( from ..utils import (
ExtractorError, ExtractorError,
int_or_none, int_or_none,
@ -140,7 +137,7 @@ class YandexMusicTrackIE(YandexMusicBaseIE):
for element in decomposed: for element in decomposed:
if isinstance(element, dict) and element.get('name'): if isinstance(element, dict) and element.get('name'):
parts.append(element['name']) parts.append(element['name'])
elif isinstance(element, compat_basestring): elif isinstance(element, compat_str):
parts.append(element) parts.append(element)
return ''.join(parts) return ''.join(parts)