[GH-ISSUE #881] Missing support for <playlist>:recommended #538

Closed
opened 2026-02-27 23:23:13 +03:00 by kerem · 9 comments
Owner

Originally created by @wicol on GitHub (Nov 10, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/881

Getting this in homeassistant:

2022-11-10 09:12:15.187 WARNING (SyncWorker_3) [spotipy.client] Expected id of type playlist but found type 7lHEB3qcunczxs19Saxeom spotify:playlist:7lHEB3qcunczxs19Saxeom:recommended
2022-11-10 09:12:15.243 ERROR (SyncWorker_3) [spotipy.client] HTTP Error for GET to https://api.spotify.com/v1/playlists/recommended with Params: {'fields': None, 'market': None, 'additional_types': 'track'} returned 404 due to Invalid playlist Id

I'm guessing it's a new type of type that needs to be supported? :)

Originally created by @wicol on GitHub (Nov 10, 2022). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/881 Getting this in homeassistant: ``` 2022-11-10 09:12:15.187 WARNING (SyncWorker_3) [spotipy.client] Expected id of type playlist but found type 7lHEB3qcunczxs19Saxeom spotify:playlist:7lHEB3qcunczxs19Saxeom:recommended 2022-11-10 09:12:15.243 ERROR (SyncWorker_3) [spotipy.client] HTTP Error for GET to https://api.spotify.com/v1/playlists/recommended with Params: {'fields': None, 'market': None, 'additional_types': 'track'} returned 404 due to Invalid playlist Id ``` I'm guessing it's a new type of type that needs to be supported? :)
kerem 2026-02-27 23:23:13 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@dieser-niko commented on GitHub (Nov 14, 2022):

From where exactly is the :recommended parameter coming from? Is there another API call before that?

<!-- gh-comment-id:1313477792 --> @dieser-niko commented on GitHub (Nov 14, 2022): From where exactly is the `:recommended` parameter coming from? Is there another API call before that?
Author
Owner

@wicol commented on GitHub (Nov 17, 2022):

I think it tranitioned from playing a playlist to playing a "radio" based on that playlist.

<!-- gh-comment-id:1318898976 --> @wicol commented on GitHub (Nov 17, 2022): I think it tranitioned from playing a playlist to playing a "radio" based on that playlist.
Author
Owner

@dieser-niko commented on GitHub (Nov 17, 2022):

Do you have an endpoint? As far as I know, spotipy does not support anything that is not documented by Spotify themselves. When I try to retrieve the current playback when playing a radio playlist, the context (where a playlist would normally be referenced) is always null.

As a workaround, simply remove the :recommended.

<!-- gh-comment-id:1319031054 --> @dieser-niko commented on GitHub (Nov 17, 2022): Do you have an endpoint? As far as I know, spotipy does not support anything that is not documented by Spotify themselves. When I try to retrieve the current playback when playing a radio playlist, the context (where a playlist would normally be referenced) is always null. As a workaround, simply remove the `:recommended`.
Author
Owner

@wicol commented on GitHub (Nov 17, 2022):

No I don't have an endpoint. But I found how to reproduce:

  1. Set up spotify component in in homeassistant
  2. Go to a playlist in the app (I use my android phone) and scroll to the bottom - to the "Recommended songs" section.
  3. Play one of those tracks
  4. Errors in log as provided above
<!-- gh-comment-id:1319066891 --> @wicol commented on GitHub (Nov 17, 2022): No I don't have an endpoint. But I found how to reproduce: 1. Set up spotify component in in homeassistant 2. Go to a playlist in the app (I use my android phone) and scroll to the bottom - to the "Recommended songs" section. 3. Play one of those tracks 4. Errors in log as provided above
Author
Owner

@stephanebruckert commented on GitHub (Nov 17, 2022):

It would be good to link this to an issue posted in https://github.com/home-assistant/core as it's unclear what code is being called.

<!-- gh-comment-id:1319086984 --> @stephanebruckert commented on GitHub (Nov 17, 2022): It would be good to link this to an issue posted in https://github.com/home-assistant/core as it's unclear what code is being called.
Author
Owner

@dieser-niko commented on GitHub (May 1, 2024):

@wicol any updates? The only related issue that I could find was this one, which was marked as stale: https://github.com/home-assistant/core/issues/48258

<!-- gh-comment-id:2089130895 --> @dieser-niko commented on GitHub (May 1, 2024): @wicol any updates? The only related issue that I could find was this one, which was marked as stale: https://github.com/home-assistant/core/issues/48258
Author
Owner

@wicol commented on GitHub (May 2, 2024):

Updates? No, not really. Was it not reproducable for you using my instructions?
I can try it again I suppose, brb.

<!-- gh-comment-id:2089611855 --> @wicol commented on GitHub (May 2, 2024): Updates? No, not really. Was it not reproducable for you using my instructions? I can try it again I suppose, brb.
Author
Owner

@dieser-niko commented on GitHub (May 2, 2024):

The thing is, I've never seen this :recommended "tag" before. To me it seems like this is coming from home assistant, which I don't have since my home is not very smart. I might set it up on a Raspberry Pi, but as I said, I don't have any smart home devices (like WiFi Speakers) to test it with, so I'm not sure how far I can get.

<!-- gh-comment-id:2089808037 --> @dieser-niko commented on GitHub (May 2, 2024): The thing is, I've never seen this :recommended "tag" before. To me it seems like this is coming from home assistant, which I don't have since my home is not very smart. I might set it up on a Raspberry Pi, but as I said, I don't have any smart home devices (like WiFi Speakers) to test it with, so I'm not sure how far I can get.
Author
Owner

@wicol commented on GitHub (May 2, 2024):

Yeah I can't reproduce this anymore 🤷
Happy days, feel free to close :)

<!-- gh-comment-id:2089946705 --> @wicol commented on GitHub (May 2, 2024): Yeah I can't reproduce this anymore 🤷 Happy days, feel free to close :)
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/spotipy#538
No description provided.