sigma67/ytmusicapi

rate_playlist() returning 404 "Requested entity was not found."

jonathanbell opened this issue · 4 comments

Describe the bug

Version 1.7.0 - calling rate_playlist() with a valid browseId results in a 404 error/exception.

To Reproduce

Steps to reproduce the behaviour:

  1. Create a simple call to rate_playlist()
def test():
    print("Start...")
    ytmusicapi.rate_playlist(
        "VLRDCLAK5uy_nKfNEHo6Yu1lao4pamzirHgatT0liBhzY", "LIKE"
    )
    print("...End")
  1. and call it.
  2. Expect "Feelin' Good in the '80s" playlist to be added to library.
  3. Actually, see this error:
File "/<redacted>/lib/python3.11/site-packages/ytmusicapi/ytmusic.py", line 241, in _send_request
    raise Exception(message + error)
Exception: Server returned HTTP 404: Not Found.
Requested entity was not found.

Additional context

This seems to happen for both playlists and albums. I haven't tried INDIFFERENT or DISLIKE. If I find some time, I might be able to dig deeper and submit and PR. Thanks for your attention!

Possibly related: #362

If you figure out how without extra requests, sure. AFAIK search only returns browseIds.

For albums, the playlistId starts with OLA...