Update lastimport.py

This commit is contained in:
Alok Saboo 2023-12-20 10:21:45 -05:00
parent 135faac62e
commit 5e4cb20c4a

View file

@ -259,7 +259,7 @@ def process_tracks(lib, tracks, log):
if song is not None:
count = int(song.get("play_count", 0))
new_count = int(tracks[num]["playcount"]) if tracks[num]["playcount"] else 1
new_count = int(tracks[num].get("playcount", 1))
log.debug(
"match: {0} - {1} ({2}) " "updating: play_count {3} => {4}",
song.artist,