[GH-ISSUE #355] Get timestamp in history #280

Closed
opened 2026-02-27 22:08:58 +03:00 by kerem · 2 comments
Owner

Originally created by @louis030195 on GitHub (Feb 26, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/355

hey i'm developping a piece of code to sync my youtube music to last.fm (https://github.com/louis030195/ega/tree/main/functions/youtube_music_to_lastfm)

and i'd like to avoid adding duplicates by hashing artist + music + time listened

but in ytmusicapi there is just "played" "today" no timestamp, is it a bottleneck from youtube music api or it could be fixed here? happy to contribute if necessary

Originally created by @louis030195 on GitHub (Feb 26, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/355 hey i'm developping a piece of code to sync my youtube music to last.fm (https://github.com/louis030195/ega/tree/main/functions/youtube_music_to_lastfm) and i'd like to avoid adding duplicates by hashing artist + music + time listened but in ytmusicapi there is just "played" "today" no timestamp, is it a bottleneck from youtube music api or it could be fixed here? happy to contribute if necessary
kerem closed this issue 2026-02-27 22:08:58 +03:00
Author
Owner

@sigma67 commented on GitHub (Feb 27, 2023):

I assume you're referring to the history page. Can only scrape what's there on https://music.youtube.com/history. As you can see it's only clustered by date without timestamp. Background data is rarely much more than what you can see on the frontend, in this case there is no timestamp. Nice project though.

<!-- gh-comment-id:1446036188 --> @sigma67 commented on GitHub (Feb 27, 2023): I assume you're referring to the history page. Can only scrape what's there on https://music.youtube.com/history. As you can see it's only clustered by date without timestamp. Background data is rarely much more than what you can see on the frontend, in this case there is no timestamp. Nice project though.
Author
Owner

@louis030195 commented on GitHub (Feb 27, 2023):

I assume you're referring to the history page. Can only scrape what's there on https://music.youtube.com/history. As you can see it's only clustered by date without timestamp. Background data is rarely much more than what you can see on the frontend, in this case there is no timestamp. Nice project though.

Understandable
I just sent a feature request to YouTube music team

<!-- gh-comment-id:1446173291 --> @louis030195 commented on GitHub (Feb 27, 2023): > I assume you're referring to the history page. Can only scrape what's there on https://music.youtube.com/history. As you can see it's only clustered by date without timestamp. Background data is rarely much more than what you can see on the frontend, in this case there is no timestamp. Nice project though. Understandable I just sent a feature request to YouTube music team
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#280
No description provided.