Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from phw/fix-album-info
Browse files Browse the repository at this point in the history
subsonic: fix wrong variable use to read album name and artist
  • Loading branch information
mayhem authored Dec 31, 2023
2 parents 9f38115 + 8f419aa commit 92f79b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lb_content_resolver/subsonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def run_sync(self):
album_mbid = album_info2["albumInfo"]["musicBrainzId"]
except KeyError:
pbar.write(bcolors.FAIL + "FAIL " + bcolors.ENDC + "subsonic album '%s' by '%s' has no MBID" %
(album_info["name"], album_info["artist"]))
(album["name"], album["artist"]))
self.error += 1
continue

Expand Down Expand Up @@ -111,11 +111,11 @@ def run_sync(self):
continue
if msg == "":
pbar.write(bcolors.OKGREEN + "OK " + bcolors.ENDC + "album %-50s %-50s" %
(album_info["name"][:49], album_info["artist"][:49]))
(album["name"][:49], album["artist"][:49]))
self.matched += 1
else:
pbar.write(bcolors.FAIL + "FAIL " + bcolors.ENDC + "album %-50s %-50s" %
(album_info["name"][:49], album_info["artist"][:49]))
(album["name"][:49], album["artist"][:49]))
pbar.write(msg)
self.error += 1

Expand Down

0 comments on commit 92f79b9

Please sign in to comment.