userplaycount is a str, not an int

This commit is contained in:
jesopo 2019-02-28 16:23:53 +00:00
parent e77d681d7d
commit bb6b292b6c

View file

@ -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 "")