userplaycount is a str, not an int
This commit is contained in:
parent
e77d681d7d
commit
bb6b292b6c
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
play_count = ""
|
||||
if ("userplaycount" in info_page.data.get("track", {}) and
|
||||
info_page.data["track"]["userplaycount"] > 0):
|
||||
int(info_page.data["track"]["userplaycount"]) > 0):
|
||||
play_count = int(info_page.data["track"]["userplaycount"])
|
||||
play_count = " (%d play%s)" % (play_count,
|
||||
"s" if play_count > 1 else "")
|
||||
|
|
Loading…
Reference in a new issue