[GH-ISSUE #313] Artists missing for a certain song when using get_watch_playlist() #243

Closed
opened 2026-02-27 22:08:47 +03:00 by kerem · 4 comments
Owner

Originally created by @RaduTek on GitHub (Oct 27, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/313

After running a playlist through some code I've made, I've found that a certain song does not return any artists.
The song in question is: https://music.youtube.com/watch?v=_GUaqxHWLks.
This issue happens outside of my code.

After running result = ytm.get_watch_playlist("_GUaqxHWLks") and outputting as JSON print(json.dumps(result, indent=2)) I get this: (trimmed unnecessary parts)

  "tracks": [
    {
      "videoId": "_GUaqxHWLks",
      "title": "Human Rights",
      "length": "6:04",
      "thumbnail": [...],
      "feedbackTokens": null,
      "likeStatus": null,
      "videoType": "MUSIC_VIDEO_TYPE_ATV",
      "artists": [],
      "views": "61",
      "album": {
        "name": "Vocal Trance Club Hits Vol. 4",
        "id": "MPREb_YBKrMP6OhRV"
      },
      "year": "2008"
    },
    ...
  ]
}

Notice how "artists": [] is empty. Meanwhile in YT Music, on the watch page the artist is displayed successfully, so it shouldn't be a backend issue or missing metadata on YT's side.
image

Originally created by @RaduTek on GitHub (Oct 27, 2022). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/313 After running a playlist through some code I've made, I've found that a certain song does not return any artists. The song in question is: [https://music.youtube.com/watch?v=_GUaqxHWLks](https://music.youtube.com/watch?v=_GUaqxHWLks). This issue happens outside of my code. After running `result = ytm.get_watch_playlist("_GUaqxHWLks")` and outputting as JSON `print(json.dumps(result, indent=2))` I get this: (trimmed unnecessary parts) ```{ "tracks": [ { "videoId": "_GUaqxHWLks", "title": "Human Rights", "length": "6:04", "thumbnail": [...], "feedbackTokens": null, "likeStatus": null, "videoType": "MUSIC_VIDEO_TYPE_ATV", "artists": [], "views": "61", "album": { "name": "Vocal Trance Club Hits Vol. 4", "id": "MPREb_YBKrMP6OhRV" }, "year": "2008" }, ... ] } ``` Notice how `"artists": []` is empty. Meanwhile in YT Music, on the watch page the artist is displayed successfully, so it shouldn't be a backend issue or missing metadata on YT's side. ![image](https://user-images.githubusercontent.com/52799099/198390858-ef9aa5a0-aac1-41e4-bcf0-7e964ed8bc88.png)
kerem 2026-02-27 22:08:47 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@RaduTek commented on GitHub (Oct 27, 2022):

To make it clear, all the code I've used to recreate the issue is:

import json
from ytmusicapi import YTMusic
ytm = YTMusic()
result = ytm.get_watch_playlist("_GUaqxHWLks")
print(json.dumps(result, indent=2))
<!-- gh-comment-id:1294032082 --> @RaduTek commented on GitHub (Oct 27, 2022): To make it clear, all the code I've used to recreate the issue is: ``` import json from ytmusicapi import YTMusic ytm = YTMusic() result = ytm.get_watch_playlist("_GUaqxHWLks") print(json.dumps(result, indent=2)) ```
Author
Owner

@sigma67 commented on GitHub (Nov 2, 2022):

If you look at your screenshot, the data is not there on the YouTube Music frontend. It only shows the album. That's why there is no artist in the data.

<!-- gh-comment-id:1300544409 --> @sigma67 commented on GitHub (Nov 2, 2022): If you look at your screenshot, the data is not there on the YouTube Music frontend. It only shows the album. That's why there is no artist in the data.
Author
Owner

@RaduTek commented on GitHub (Nov 2, 2022):

I'm sorry, but there is. The album name is "Vocal Trance Club Hits Vol. 4", while the artist is "61 Rus". The thing is that the artist is not matched with an ID, as it's not clickable, but it is displayed both there and on the album page.

<!-- gh-comment-id:1300778692 --> @RaduTek commented on GitHub (Nov 2, 2022): I'm sorry, but there is. The album name is "Vocal Trance Club Hits Vol. 4", while the artist is "61 Rus". The thing is that the artist is not matched with an ID, as it's not clickable, but it is displayed both there and on the album page.
Author
Owner

@sigma67 commented on GitHub (Nov 3, 2022):

Ah I see. This is a special case where the artist matches the regex used to detect view counts, and therefore a bug.

<!-- gh-comment-id:1302275657 --> @sigma67 commented on GitHub (Nov 3, 2022): Ah I see. This is a special case where the artist matches the regex used to detect view counts, and therefore a bug.
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#243
No description provided.