spotcast
spotcast copied to clipboard
"My Episodes" URI not correctly handled: spotify:user:[ID]:collection:your-episodes
Bug Ticket
Describe the bug
The Spotify "Your Episodes" collection is associated with a user:[ID]:collection URI, similar to the URIs used with the "Liked Songs" collection. For example: spotify:user:1234567890:collection:your-episodes
Currently, when a "Your Episodes" URI is provided to the spotcast service trigger, it fails at the URI validation step without proceeding any further. Instead of rejecting the URI, the validator should recognize "Your Episodes" URIs as valid so that they can be passed along to spotipy's start_playback
method. Implementation-wise, "Your Episodes" URIs should follow the exact same codepath as currently used with "Liked Songs" collection URIs.
Troubleshooting
Make sure to validate all the elements before submitting the ticket (Exception to the steps marked as optional)
- [x] Using latest version of spotcast
- [x] Using latest stable version of Home Assistant
- [x] I have setup the Spotify integration in Home Assistant
- [x] I have renewed my
sp_dc
andsp_key
values and restarted Home Assistant (see README) - [x] (optional) I have Spotify Premium
- [ ] (optional) I am using multiple accounts
- [ ] (optional) I'm attaching relevant logs with level debug for component spotcast (see README)
- [ ] (optional) I'm using entity_id in the service call and have tried device_name but the issue remains
Environment
- Installation type: HA_OS 12.2
- HA version: 2024.5.0
- spotcast version: v3.7.3
Configuration
spotcast:
sp_dc: !secret [SECRETNAME1]
sp_key: !secret [SECRETNAME2]
country: US
Service Call
- Replace [DEVICE] with any valid device
- Replace [ID] with your user ID (identical to the ID found in your "Liked Songs" URI)
- Invoke the service call
- Note errors in HA log
service: spotcast.start
data:
uri: spotify:user:[ID]:collection:your-episodes
device_name: [DEVICE]
Logs
- normal
2024-05-02 15:37:53.403 ERROR (SyncWorker_5) [custom_components.spotcast.helpers] collection is not a valid type for Spotify request. Please make sure to use the following list ['playlist']
2024-05-02 15:37:53.403 ERROR (SyncWorker_5) [custom_components.spotcast] Invalid URI provided, aborting casting