mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #14] [Feature Request] LastFM Integration / History API #10
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#10
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 @akraus53 on GitHub (May 15, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/14
Hi All,
I would like to request a feature, which is actually something I've been trying to do with google play music for the last few weeks on and off but couldn't get to work. With Google explaining how to switch to Youtube Music recently, I might as well try getting it to work on YT-music.
I want to log my listening history on LastFM, which is a platform to do exactly that, they call it "scrobbling". I'd be happy to write my own software to do the scrobbling part, but I think this could be a usefull tool for many. Scrobbling is mainly done by reading notifications or by native integration in a player, which is both impossible if you're using a Smart Home Speaker like Chromecast Audio or a Google Home Mini.
Therefore, I'd prefer scrobbling the history from https://music.youtube.com/history
So a feature like
ytmusic.get_history(someUnixTimestamp)would be awesome andytmusic.autoScrobble()would be even better.I might look into this myself, but hell, feel free to implement it yourself.
Thanks a lot
@sigma67 commented on GitHub (May 15, 2020):
Hey, thanks for the interesting suggestions. Have you checked the
get_historymethod? I think it should provide all the information you need.A valuable enhancement to that method could be adding a unix timestamp to each entry. Unfortunately YouTube does not provide the exact timestamp. Currently ytmusicapi is parsing the section headings you can see on the page. Those could be converted to the corresponding days at UTC+00 00:00.
For scrobbling while playing, you can use the YTMusic integration of the unofficial desktop player. It scrobbles your YTMusic tracks while playing.
I'm not sure how
autoScrobble()would work. I guess you could retrieve the history page in regular intervals and scrobble new items to Last.FM. But I think that would be something a project using ytmusicapi as a dependency could implement.@akraus53 commented on GitHub (May 15, 2020):
Thank you very much. I didn't see that that function already exists. This is the equivalent of calling tech support without trying to turn it off and on again...
@akraus53 commented on GitHub (May 15, 2020):
Feel free to reopen if you want to, I'm fine with this being fixed for now 🎧