Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: [fb2k v2] Last.fm Playcount Sync (Read 16799 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: [fb2k v2] Last.fm Playcount Sync

Reply #51
Yes, that is highlighted in the thread title.


Re: [fb2k v2] Last.fm Playcount Sync

Reply #53
I know it's been abandoned, but if you or anyone else ever decides to maintain it again, an option for Last.fm Playcount Sync to use the MBIDs when Love/Unloving would be useful, since currently it just marks every song with the same name/artist since it treats them all as the same song (so remixes/etc. get marked too). It looks like LFM has an API for it.

https://www.last.fm/api/show/track.getInfo

Re: [fb2k v2] Last.fm Playcount Sync

Reply #54
Sorry but not possible. The link you posted is for fetching info and MBID support is horribly broken anyway.

These are the APIs used for actually loving/unloving tracks.

https://www.last.fm/api/show/track.love
https://www.last.fm/api/show/track.unlove

They're not even pretending to support MBIDs there. artist/title are the only acceptable parameters.

Re: [fb2k v2] Last.fm Playcount Sync

Reply #55
Damn! Oh well, thanks for the component regardless, I use it a lot.

Re: [fb2k v2] Last.fm Playcount Sync

Reply #56
Note really sure if you are trying to have MBID support at last.fm stats or just love/hate stats attached to MBIDs.
Because the latest is already available at ListenBrainz with its own API and web, which is the natural place for MBID usage (not an external api).

Re: [fb2k v2] Last.fm Playcount Sync

Reply #57
Note really sure if you are trying to have MBID support at last.fm stats or just love/hate stats attached to MBIDs.
Because the latest is already available at ListenBrainz with its own API and web, which is the natural place for MBID usage (not an external api).
The latter, to prevent unrelated songs with the same name being Liked. I already scrobble to Listenbrainz, but is there an equivalent foobar component to track Loved songs?

Edit: This thread suggests that Listenbrainz doesn't even use MBIDs, for some reason... Oh well.

Re: [fb2k v2] Last.fm Playcount Sync

Reply #58
That thread has nothing to do with loving/hating tracks by MBID, because the component mentioned has not that feature anyway.
Quote
outsidecontext November 13, 2023, 7:36am 11

    If we were able to use submitted track ID then it would solve issues like this

Submitted listens can include the recording ID, and if it is present it will be used for the matching.
Also, the plugin could submit recording MBID, and listenbrainz uses it. People is just complaining that plugins using title/album don't have right matches, well... it's the plugin responsibility to use better tags.

Anyway, this is what you need. It uses current MBID tag from file (or performs a lookup) and sends the love/hate feedback to listenbrainz. It also stores it on a tag on file. You can also retrieve feedback from Listenbrainz and lookup loved/hated tracks on your library (even if the tracks have no tags).
https://regorxxx.github.io/foobar2000-SMP.github.io/scripts/listenbrainz-smp/


Re: [fb2k v2] Last.fm Playcount Sync

Reply #60
https://regorxxx.github.io/foobar2000-SMP.github.io/scripts/listenbrainz-smp/
That sounds like what I'm looking for, thanks. My issue was that things like remasters would be loved as well, even if I didn't like that particular remaster because it didn't sound as good, or similar situations.
Note, however, that it uses 'MUSICBRAINZ_TRACKID' not the release ID. I think your use-case is exactly the opposite to listenbrainz usage, since loving a recording means loving the recording (not an specific release for it). A remaster, if it's not a different mix or something like that, is technically the same recording.

The script will add the love tag only to your selected files though (not remasters) and you can use that in queries fine; but in Listenbrainz, there is no difference between them.
When performing the lookup on library (i.e. search loved tracks from ListenBrainz on your library), there is a query filter on the settings to filter non desired tracks. You have ratings for that, just rate the remasters with lower values.

Re: [fb2k v2] Last.fm Playcount Sync

Reply #61
I'm currently updating it to allow a different query filter for feedback (find loved tracks, ...) and the other features (recommendations and playlists). So you can finetune how multiple releases are treated.

Also to switch if tracks should be found by MBID only or also using title/artist. Previously it used both, to make it easier for most people finding their loved tracks even on non fully tagged libraries.

Re: [fb2k v2] Last.fm Playcount Sync

Reply #62
Is it possible to display the date format of First played, last played as a Unix timestamp?
Playcount 2003 can do this by using the %2003_last_played_ts% field, but
Can I display the date format for Last.fm Playcount Sync as a unix timestamp?
am i missing something?

Re: [fb2k v2] Last.fm Playcount Sync

Reply #63
You're not missing anything. Timestamps are currently not supported. They're used for internal storage but are not exposed via title formatting.


Re: [fb2k v2] Last.fm Playcount Sync

Reply #65
You don't know how much this has helped me
Thank you very much!

Re: [fb2k v2] Last.fm Playcount Sync

Reply #66
Great component marc2k3. Can you add geting some info about track like overal playcount for all lastfm users?

Re: [fb2k v2] Last.fm Playcount Sync

Reply #67
Sorry but I won't be adding that. I'm sticking to personal data only.



Re: [fb2k v2] Last.fm Playcount Sync

Reply #70
Hi Marc, thanks for the plugin.

Unfortunately there are a handful of tracks (32) in my library where it is unable to import the loved status from lastfm. Interestingly, fetching stats and submitting love status works fine for those. But that only lasts until the next time I perform an import since that wipes those 32 tracks again :(

It seems to happen only to tracks that are mispelled on lastfm.

Re: [fb2k v2] Last.fm Playcount Sync

Reply #71
Interestingly, fetching stats and submitting love status works fine for those.

It's not interesting at all. Fetching a playcount or loving/unloving is a single web request per track where the component sends your username, track artist and track title as the parameters. Last.fm makes the match and returns the data.

When importing loved tracks, I'm making a web request with your username as the only parameter and last.fm is returning a list of every loved track which I have to walk over and match against an item in your library. It's very, very different.

All I can do is give the option to keep existing loved tracks when performing an import.

https://marc2k3.github.io/component/lastfm-playcount-sync/#214

Download: https://github.com/marc2k3/marc2k3/releases


Re: [fb2k v2] Last.fm Playcount Sync

Reply #72
Thanks that's a useful workaround for now.

I can't imagine I'm the only one with this issue... how do others deal with lastfm not returning the spelling the way you submitted it? Adopt the misspellings in your library? Turning off auto-correction in lastfm settings doesn't make a difference.

@Marc, would you consider lifting the 20/100 import/fetch restriction? Possibly on condition of setting our own api key.


Re: [fb2k v2] Last.fm Playcount Sync

Reply #74
2.1.6 fixes an issue where bulk operations spammed foobar2000 with notifications to update playlists/library viewers after every web request which is not good practice. It now happens once when all web requests have completed.

https://marc2k3.github.io/component/lastfm-playcount-sync/#216

https://github.com/marc2k3/marc2k3/releases