'Tracks' with only one <name> are artists not tracks, skip them
@@ -2202,8 +2202,11 @@ class User(_BaseObject, _Chartable):
self.ws_prefix + ".getLovedTracks",
cacheable,
params):
- title = _extract(track, "name")
+ try:
artist = _extract(track, "name", 1)
+ except IndexError:
+ continue
+ title = _extract(track, "name")
date = _extract(track, "date")
timestamp = track.getElementsByTagName(
"date")[0].getAttribute("uts")
