mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #296] get_watch_playlist() fails with 404: Requested entity not found #230
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#230
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 @toasterofbread on GitHub (Sep 19, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/296
A project I'm working on involving ytmusicapi suddenly stopped working today. Whenever get_watch_playlist is called it fails with the following error regardless of whether the client is authenticated:
I've tried multiple valid ids, invalid ids, and using a VPN, none of which seem to make a difference. Other functions like search seem to work fine, and YouTube Music works as usual in a browser.
@simu commented on GitHub (Sep 19, 2022):
From what I've found the error can be avoided by changing
github.com/sigma67/ytmusicapi@20b4631c31/ytmusicapi/helpers.py (L26)to1.20220912.01.00(as found when inspecting traffic generated by the web app).Since there's a date in the new version string, I wonder whether this may need to be dynamically updated when new versions of the web app are released.
@MarvinSchenkel commented on GitHub (Sep 19, 2022):
Does this actually work for you? I tried the suggested change, but I still get the same 404 error.
@simu commented on GitHub (Sep 19, 2022):
Yes, it worked for me (approximately 10 hours ago), however I'm not 100% if that ended up being the only change that I had to make (I'll have to check that tomorrow). Additionally, I also used a fresh cookie copied from the web app today.
@MarvinSchenkel commented on GitHub (Sep 20, 2022):
Guess what, this morning my
get_watch_playliststarted working again, even without the change ofclientVersion. Did YT Music revert some changes on their side?@sigma67 commented on GitHub (Sep 20, 2022):
Might have been some sort of A/B testing? I cannot reproduce the error currently.
We may need to find a way to dynamically get a viable
clientVersionif this turns out to be the cause. My current version on the web interface is1.20220914.01.00.@simu commented on GitHub (Sep 20, 2022):
Looks like it, I can't reproduce it anymore either (side-note: the web app has version
1.20220914.01.00for me today as well).I checked again, the only change I made yesterday (after some trial and error) was setting the
clientVersionto the value if found in the web app.@sigma67 commented on GitHub (Sep 20, 2022):
I preemptively changed the version string to the current date, which seems to be working for now. I'd like to avoid having to retrieve or set the version on init, and a fake version seems to work right now.
@sigma67 commented on GitHub (Oct 1, 2022):
Seems to be resolved for now, can reopen if needed in the future.
@MarvinSchenkel commented on GitHub (Oct 1, 2022):
Amazing! Will wait for the next release to include it in my product!
Op za 1 okt. 2022 om 15:42 schreef sigma67 @.***>