You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, while implementing a feature which allows the user to add/remove a single track to/from the favorites in my tidal plugin for upmpdcli, I struggled to verify whether a track was actually in favorites or not.
After adding a few debug information in the log (unfortunately debugging the plugin is almost impossible AFAIK), I ended up finding that the field "id" of a Track coming from session.user.favorites.tracks is of type int while I assumed it would be of type str.
After that, I have been able to implement the functionality correctly, so I am out of trouble already.
It looks to me that generally those id fields should be of type str, am I wrong?
Thank you
The text was updated successfully, but these errors were encountered:
Hello, while implementing a feature which allows the user to add/remove a single track to/from the favorites in my tidal plugin for upmpdcli, I struggled to verify whether a track was actually in favorites or not.
After adding a few debug information in the log (unfortunately debugging the plugin is almost impossible AFAIK), I ended up finding that the field "id" of a Track coming from session.user.favorites.tracks is of type int while I assumed it would be of type str.
After that, I have been able to implement the functionality correctly, so I am out of trouble already.
It looks to me that generally those id fields should be of type str, am I wrong?
Thank you
The text was updated successfully, but these errors were encountered: