diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-04-29 22:56:07 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-04-29 22:56:07 +0700 |
commit | 796bf9de45d6f01bf2d34ae22e1eacdc1a649fab (patch) | |
tree | 2359430b737dbae58218138f26a3c98928e5085a /youtube_dl/extractor/yandexmusic.py | |
parent | e5eadfa82f10bda43294d1da85024eec29c7973f (diff) |
[yandexmusic] Convert release_year to int
Diffstat (limited to 'youtube_dl/extractor/yandexmusic.py')
-rw-r--r-- | youtube_dl/extractor/yandexmusic.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/extractor/yandexmusic.py b/youtube_dl/extractor/yandexmusic.py index e85eca073..009203851 100644 --- a/youtube_dl/extractor/yandexmusic.py +++ b/youtube_dl/extractor/yandexmusic.py @@ -57,14 +57,14 @@ class YandexMusicTrackIE(YandexMusicBaseIE): 'info_dict': { 'id': '4878838', 'ext': 'mp3', - 'title': 'Carlo Ambrosio & Fabio Di Bari, Carlo Ambrosio - Gypsy Eyes 1', + 'title': 'Carlo Ambrosio, Carlo Ambrosio & Fabio Di Bari - Gypsy Eyes 1', 'filesize': 4628061, 'duration': 193.04, 'track': 'Gypsy Eyes 1', 'album': 'Gypsy Soul', 'album_artist': 'Carlo Ambrosio', - 'artist': 'Carlo Ambrosio & Fabio Di Bari, Carlo Ambrosio', - 'release_year': '2009', + 'artist': 'Carlo Ambrosio, Carlo Ambrosio & Fabio Di Bari', + 'release_year': 2009, }, 'skip': 'Travis CI servers blocked by YandexMusic', } @@ -120,7 +120,7 @@ class YandexMusicTrackIE(YandexMusicBaseIE): track_info.update({ 'album': album.get('title'), 'album_artist': extract_artist(album.get('artists')), - 'release_year': compat_str(year) if year else None, + 'release_year': int_or_none(year), }) track_artist = extract_artist(track.get('artists')) |