mirror of
https://github.com/beetbox/beets.git
synced 2026-01-16 21:25:14 +01:00
Update lastimport.py
This commit is contained in:
parent
135faac62e
commit
5e4cb20c4a
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue