From ce21b375018fae80aa4d5a8ee8c34089b74942b8 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 3 Aug 2020 14:37:49 -0400 Subject: [PATCH] Remove unneeded message variable --- jellyfin_kodi/full_sync.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jellyfin_kodi/full_sync.py b/jellyfin_kodi/full_sync.py index 09c6b9ac..fe61044d 100644 --- a/jellyfin_kodi/full_sync.py +++ b/jellyfin_kodi/full_sync.py @@ -428,8 +428,7 @@ class FullSync(object): # Update percentage dialog percent = int((float(index) / float(num_artists)) * 100) - message = artist_name - dialog.update(percent, heading="%s: %s" % (translate('addon_name'), library['Name']), message=message) + dialog.update(percent, heading="%s: %s" % (translate('addon_name'), library['Name']), message=artist_name) # Add artist to database obj.artist(artist) @@ -444,7 +443,7 @@ class FullSync(object): album_songs = [ song for song in songs if album_id == song.get('AlbumId') ] for song in album_songs: dialog.update(percent, - message="%s/%s/%s" % (message, album['Name'][:7], song['Name'][:7])) + message="%s/%s/%s" % (artist_name, album['Name'][:7], song['Name'][:7])) # Add song to database obj.song(song) #