Update yandexmusic.py
This commit is contained in:
parent
69d2fd73de
commit
e8a7f124d9
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user