From bacfe20af4797adb2803bb70d6dcec18b5a8d668 Mon Sep 17 00:00:00 2001 From: DesweR Date: Wed, 4 Nov 2015 02:05:54 +0700 Subject: [PATCH] [yandexmusic:album] Extract original album name Playlist title: %Artist% - %Album% (%Year%) Why so much extra information? --- youtube_dl/extractor/yandexmusic.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/youtube_dl/extractor/yandexmusic.py b/youtube_dl/extractor/yandexmusic.py index 08dc81f3a..cde6bec90 100644 --- a/youtube_dl/extractor/yandexmusic.py +++ b/youtube_dl/extractor/yandexmusic.py @@ -103,13 +103,7 @@ class YandexMusicAlbumIE(YandexMusicPlaylistBaseIE): album_id, 'Downloading album JSON') entries = self._build_playlist(album['volumes'][0]) - - title = '%s - %s' % (album['artists'][0]['name'], album['title']) - year = album.get('year') - if year: - title += ' (%s)' % year - - return self.playlist_result(entries, compat_str(album['id']), title) + return self.playlist_result(entries, compat_str(album['id']), album['title']) class YandexMusicPlaylistIE(YandexMusicPlaylistBaseIE):