[GH-ISSUE #34] musicTrackUserDetail may not be present #27

Closed
opened 2026-02-27 22:07:37 +03:00 by kerem · 1 comment
Owner

Originally created by @jdwoody on GitHub (Jun 27, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/34

Pulling album details may fail if musicTrackUserDetails aren't present

Possible fix here

track['likeStatus'] = likes.get(item['entityKey'], 'INDIFFERENT')
Originally created by @jdwoody on GitHub (Jun 27, 2020). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/34 Pulling album details may fail if musicTrackUserDetails aren't present Possible fix [here](https://github.com/sigma67/ytmusicapi/blob/master/ytmusicapi/ytmusic.py#L446) ```python track['likeStatus'] = likes.get(item['entityKey'], 'INDIFFERENT') ```
kerem 2026-02-27 22:07:37 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@sigma67 commented on GitHub (Jun 29, 2020):

The issues was that the data array was being subsetted (data[4:]) and therefore the likes were missing some tracks.

Fixed in 667a6edc81

<!-- gh-comment-id:651075458 --> @sigma67 commented on GitHub (Jun 29, 2020): The issues was that the data array was being subsetted (data[4:]) and therefore the likes were missing some tracks. Fixed in 667a6edc81c53dcc79a882176253f26391914b60
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#27
No description provided.