From b969ddbf408223de4ba078bcc3cd3d66011e54b4 Mon Sep 17 00:00:00 2001 From: Kim Wittenburg <5wittenb@informatik.uni-hamburg.de> Date: Tue, 4 Sep 2018 17:41:38 +0200 Subject: [PATCH] Fix ID Lookups --- beetsplug/itunes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/itunes.py b/beetsplug/itunes.py index 2728d5d..0178572 100644 --- a/beetsplug/itunes.py +++ b/beetsplug/itunes.py @@ -198,7 +198,7 @@ class iTunesPlugin(BeetsPlugin): try: for country in self.lookup_countries: try: - album = itunespy.lookup_album(album_id, country=country) + album = itunespy.lookup_album(album_id, country=country)[0] return self.make_album_info(album, True) except LookupError: pass @@ -212,7 +212,7 @@ class iTunesPlugin(BeetsPlugin): try: for country in self.lookup_countries: try: - track = itunespy.lookup_track(track_id, country=country) + track = itunespy.lookup_track(track_id, country=country)[0] return self.make_track_info(track) except LookupError: pass