mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Remove unneeded message variable
This commit is contained in:
parent
dc6c9e7dc2
commit
ce21b37501
1 changed files with 2 additions and 3 deletions
|
@ -428,8 +428,7 @@ class FullSync(object):
|
||||||
|
|
||||||
# Update percentage dialog
|
# Update percentage dialog
|
||||||
percent = int((float(index) / float(num_artists)) * 100)
|
percent = int((float(index) / float(num_artists)) * 100)
|
||||||
message = artist_name
|
dialog.update(percent, heading="%s: %s" % (translate('addon_name'), library['Name']), message=artist_name)
|
||||||
dialog.update(percent, heading="%s: %s" % (translate('addon_name'), library['Name']), message=message)
|
|
||||||
|
|
||||||
# Add artist to database
|
# Add artist to database
|
||||||
obj.artist(artist)
|
obj.artist(artist)
|
||||||
|
@ -444,7 +443,7 @@ class FullSync(object):
|
||||||
album_songs = [ song for song in songs if album_id == song.get('AlbumId') ]
|
album_songs = [ song for song in songs if album_id == song.get('AlbumId') ]
|
||||||
for song in album_songs:
|
for song in album_songs:
|
||||||
dialog.update(percent,
|
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
|
# Add song to database
|
||||||
obj.song(song)
|
obj.song(song)
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue