mirror of
https://github.com/Aran404/SpotAPI.git
synced 2026-04-25 16:55:50 +03:00
[GH-ISSUE #10] IndexError: list index out of range #8
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SpotAPI#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @afkarxyz on GitHub (Dec 14, 2024).
Original GitHub issue: https://github.com/Aran404/SpotAPI/issues/10
Following the public.py update, I'm experiencing issues. The initial experiment consistently fails, yielding a
list index out of rangeerror. Could you review my code for potential errors?@lxm9357 commented on GitHub (Dec 14, 2024):
I encountered the same issue. I manually used TLSClient to make a request to https://open.spotify.com and found that sometimes the retrieved content does not include https://open.spotifycdn.com/cdn/build/web-player/web-player, but instead includes https://open-exp.spotifycdn.com/cdn/build/web-player/web-player. I suspect that modifying the regular expression accordingly might resolve this problem.
Below is the content I obtained when accessing https://open.spotify.com, which includes https://open-exp.spotifycdn.com/cdn/build/web-player/web-player:
@Aran404 commented on GitHub (Dec 14, 2024):
I noticed this yesterday aswell, it would only work like 10% of the time, I'll investigate these later today but I think your fix is appropriate here. Thanks.
@Aran404 commented on GitHub (Dec 15, 2024):
I've added this fix, please let me know if it works.
@afkarxyz commented on GitHub (Dec 15, 2024):
Thank you so much for the fix; everything is working like a charm now. 👍