[GH-ISSUE #432] Add song to history feature don't work now #323

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

Originally created by @maxrave-dev on GitHub (Sep 17, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/432

Describe the bug
Add song to history feature don't work now

To Reproduce
Steps to reproduce the behavior:

  1. Run this code
import ytmusicapi
from ytmusicapi import YTMusic

# ytmusicapi.setup(filepath='oauth.json')
ytmusic = YTMusic("oauth.json")
ytmusic.add_history_item(ytmusic.get_song("4SYW7TrMWOg"))
  1. Go to YouTube Music History
  2. Don't see track with this "4SYW7TrMWOg" videoId in history lists
Originally created by @maxrave-dev on GitHub (Sep 17, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/432 **Describe the bug** Add song to history feature don't work now **To Reproduce** Steps to reproduce the behavior: 1. Run this code ``` import ytmusicapi from ytmusicapi import YTMusic # ytmusicapi.setup(filepath='oauth.json') ytmusic = YTMusic("oauth.json") ytmusic.add_history_item(ytmusic.get_song("4SYW7TrMWOg")) ``` 3. Go to [YouTube Music History](https://music.youtube.com/history) 5. Don't see track with this "4SYW7TrMWOg" videoId in history lists
kerem closed this issue 2026-02-27 23:00:11 +03:00
Author
Owner

@maxrave-dev commented on GitHub (Sep 17, 2023):

Always response code 400

<!-- gh-comment-id:1722397891 --> @maxrave-dev commented on GitHub (Sep 17, 2023): Always response code 400
Author
Owner

@sigma67 commented on GitHub (Sep 17, 2023):

Check your credentials, I'm getting 204 as usual via add_history_item

<!-- gh-comment-id:1722399093 --> @sigma67 commented on GitHub (Sep 17, 2023): Check your credentials, I'm getting 204 as usual via `add_history_item`
Author
Owner

@maxrave-dev commented on GitHub (Sep 17, 2023):

My credentials are okay, other references work perfectly, only add_history_item doesn't work. I don't know why

<!-- gh-comment-id:1722399786 --> @maxrave-dev commented on GitHub (Sep 17, 2023): My credentials are okay, other references work perfectly, only add_history_item doesn't work. I don't know why
Author
Owner

@maxrave-dev commented on GitHub (Sep 17, 2023):

I resolved with my credentials, thanks @sigma67

<!-- gh-comment-id:1722400692 --> @maxrave-dev commented on GitHub (Sep 17, 2023): I resolved with my credentials, thanks @sigma67
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/ytmusicapi#323
No description provided.