https://marc2k3.github.io/component/lastfm-playcount-sync/
While this shares the same name as the previous version available for v1.4+, no settings or data is preserved. You have to start fresh.
And the 64bit build really needs a 64bit scrobbler so it's kind of useless at this moment in time! Not even sure why I'm posting tbh. :D
Hello thanks for the plugin.
After installed the plugin, I got crash on startup. Disable the plugin and my foobar works fine again.
here is my crash logs.
https://cdn.discordapp.com/attachments/290709370600423424/1014389824444190781/crash_reports.zip
I download the old version https://github.com/marc2k3/fb2k-component and it didn't crash.
Thanks for the crash report. I hope I've fixed it...
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
Thanks, it's not crashing on startup anymore.
But I got crashed when I clicked on "import Last.fm loved tracks" > show me reset Media Library > yes > Foobar crashes
https://cdn.discordapp.com/attachments/290709370600423424/1014415185710153728/crash_reports.zip
manual fetch tracks is working fine.
also, the love/unlove is grey out/disabled for me.
Not sure what's going on here as I did test everything.
I may have to revert to using old methods from the previous foobar2000-SDK. I had been using the new stuff for a few days but I must be doing something wrong. There's a tiny possibility it's fb2k bugz but it's more than likely me.
Sorry for the inconvenience. :-[
also, the love/unlove is grey out/disabled for me.
This is because you need to authorise your account.
I just uploaded 2.0.2 - if this fails, I really am reverting all new code. :o :))
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
thank you, it's working great this time.
Cool.
In other news, someone has requested a 64bit version of foo_scrobble. Now we wait...
https://github.com/gix/foo_scrobble/issues/42
2.0.3
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
This adds an extra sanity check to make sure your Media Library is fully initialised before importing loved tracks. The menu item will be greyed out if it's not ready. This in addition to being unavailable when your Media Library has not been configured or you haven't set a user name.
2.0.4
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
This adds data import/export from the Library menu.
A 64bit version of foo_scrobble is now available making the 64bit version of this usable.
https://github.com/gix/foo_scrobble/releases
Version 1.0.1 crashed. See attached crash report.
Sorry but I don't have the v1 source code so I can't investigate it. It was last updated in 2020 and it's the only folder missing from the old source code archive I keep for other components: https://github.com/marc2k3/fb2k-archive
I think you'll have to nuke it from orbit. Or just uninstall - whichever is easier. :P
If you're willing to install fb2k v2 in portable mode, you can test this console spamming album total build I made (32bit only). You can play the tracks with the biggest discrepancies you get with enhanced playcount to see what last.fm says??
Ok I installed the version of the plugin you linked (in the foo_enhanced_playback thread). The console stats look accurate as far as I can tell. The only thing throwing some of them off is the arbitrary use the ` and ' character in track titles (which on my end get changed by foo_musicbrainz). Here's an example.
Raw Last.fm playback stats in CSV where artist is Coldplay and track is Don['’|t Panic.
Artist, Album, Track title, Play count, First played, Last played
Coldplay,, Don't Panic, 20, 1/24/2006 7:02:00 PM, 11/6/2013 7:43:00 AM
Coldplay, Blue Room, Don't Panic, 31, 8/24/2006 7:36:00 AM, 8/11/2014 3:53:00 PM
Coldplay, Blue Room, Don’t Panic, 6, 2/25/2018 9:02:00 AM, 4/28/2022 3:17:00 PM
Coldplay, Garden State, Don't Panic, 20, 1/24/2006 7:02:00 PM, 11/6/2013 7:43:00 AM
Coldplay, Garden State: Music from the Motion Picture, Don’t Panic, 1, 2/25/2018 9:09:00 AM, 2/25/2018 9:09:00 AM
Coldplay, Parachutes, Don't Panic, 40, 8/24/2006 7:52:00 AM, 9/8/2013 9:39:00 PM
Coldplay, Parachutes, Don’t Panic, 3, 2/25/2018 9:08:00 AM, 4/28/2022 3:32:00 PM
Overall total for
Don’t Panic is 10.
Overall total for
Don't Panic is 133.
I changed the title from
Don’t Panic to
Don't Panic and these are the results from foo_lastfm_playcount_sync in the console:
Overall total for 'Don’t Panic' by 'Coldplay': 10
Garden State: Music from the Motion Picture - 1
Parachutes - 3
The Blue Room E.P. - 6
Overall total for 'Don't Panic' by 'Coldplay': 133
<album missing> - 42
Blue Room - 31
Garden State - 20
Parachutes - 40
I guess there's a sweet spot here for how specific the matches should be by not matching for punctuation maybe? Though it's not really your problem. It should be Last.fm doing the aliasing but they don't seem to care. I'll probably switch to ListenBrainz (https://listenbrainz.org) when my fav apps have plugins for it.
The only thing throwing some of them off is the arbitrary use the ` and ' character in track titles (which on my end get changed by foo_musicbrainz)
foo_musicbrainz has pretty much always* had an option for replacing unicode punctuation with asciii. Picard does the same and it's always recommended, especially if scrobbling. The wider world won't be using musicbrainz so you really want your scrobbles to count towards the titles that everyone else is submitting. Too late for you now though.
*the original developer last updated it in 2012 and it was there then. I can't say for sure about the earliest versions. There might be a changelog entry for when it was added but I'm far too lazy to check that out.
Also, it would have more interesting to compare the album groupings returned against the stats by enhanced playcount that appeared way off. That was the prompt for all of this.
Sidenote: I've updated my docs to make the artist/title thing more prominent
https://marc2k3.github.io/component/lastfm-playcount-sync/
Marc2k3, the component Cue.Fix Version 1.02 does not install on Foobar2000 v2 32 bit beta 6.
You can check?
Thanks
Cardiacs
Thanks for spotting that. The DLLs inside the fb2k-component are fine so if you extract it manually and drag it over the Preferences dialog>Component it should install. 32bit is at the root, 64bit inside the x64 folder.
Something has gone wrong with my github actions script which bundles the component and automates the release. I'll look in to it / get the file replaced ASAP.
edit: file now replaced
Installed and it works
Thanks!!!
Cardiacs
For whatever reason, specifying fb2k-component as the file extension for the 7-zip command line tool (7z) causes fb2k to barf on the result. I'm too lazy to investigate other options that would probably make it work but changing to zip definitely works.
edit: presumably it creates a 7z file and renames that which fb2k can't handle whereas zip is more explicit
edit2: as expected, I'm super stupid and needed to add this: -tzip
Works as expected
slight issue though, if your privacy settings on last.fm is set to "Hide recent listening information" it will not update the playcount.
The console will throw the error
"Last.fm Playcount Sync: Login: User required to be logged in"
sounds like a simple fix since you already have to authorize your account if you want to love/unlove tracks
Yeah, that turned out to be super easy. I'll need to update the readme and I'll post an updated component later on tonight or tomorrow morning.
It is done...
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
It is done...
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
Yup that works great, thanks for the quick update!
2.0.6
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
Nothing very exciting but I recommend updating.
2.0.7
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
Fixes a minor menu bug.
Hi!
Not sure if feature of this plugin or Last.fm, but does it only compare artist and title for the scrobbles? As I installed your plugin and was listening to Rush, it updated also the tags of last.fm to next album which is live album. I might just be stupid and it might be an user error, but wanted to make sure if I'm doing something stupid or is there a way around this?
Yes it matches artist/title only and that is by design. It's explained in the usage instructions. The first post and download pages both link to it.
https://marc2k3.github.io/component/lastfm-playcount-sync/
32bit users can use this to get last.fm plays which tries to match albums
https://hydrogenaud.io/index.php/topic,115227.0.html
I see your console showing 64bit which means you'll have to wait and see if that component is updated or switch.
Sorry, I'm bad at reading instructions. But thank you for the information. Will wait, nice plugin, even though I was lazy to read :)
2.0.9
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
2.0.10
- `2.0.9` was updated to use code from the latest `foobar2000` `SDK` but the loved track import would crash on `foobar2000` `2.0 Beta 17` and earlier. The change has been reverted so it works on any version.
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
Hi!, I recently started using Last.FM with Foobar2000, I installed foo_scrobble and looking how to sync data back (and be able to like songs in my library) with my music I found your component.
I have 2 questions:
1) This component makes conflicts if "retrieve Last.fm scrobbles" on foo_enhanced_playcount is active? and ¿what is the difference between the two?
2) I want to add a column in SimPlaylist that would be an equivalent to the clickeable 5 star rating but with a Last.fm "Love button", but I can't achieve that.
Thanks to make excellent components for Foobar2000.
PD: I installed the version 1.0.1 of foo_lastfm_playcount_sync 'cause I'm using Foobar v1.6.16
1) there should be no conflicts if both are used at the same time. The main differences are:
my component is based on artist/title matches only. enhanced playcount tries to take album in to account
my component can love/unlove tracks
my component only stores playcount, loved status, first played and last played dates - you can check the enhanced playcount thread for all the extra data it fetches/stores.
2) Not possible with simplaylist or any "proper" playlist viewer. It's possible with javascript based playlists like this one...
https://jscript-panel.github.io/gallery/jsplaylist/
It's not for everyone though. Some people may find performance sucks on lower end pcs.
Thanks
@marc2k3 for the reply, I installed your JS Playlist complement and edit some columms to fit more with my needs and don't show correctly the current track icon (triangle at left) and the heart of love button. What I am doing wrong?
(https://i.ibb.co/f0ZT340/Captura-foobar2000-JS-Playlist.jpg) (https://ibb.co/f0ZT340)
You need this font. https://github.com/FortAwesome/Font-Awesome/blob/4.x/fonts/fontawesome-webfont.ttf?raw=true
I forgot to add a link to the download page for the fb2k v1 version so that has just been updated.
Thanks, now all shows perfectly 👍✌️
I got crashed on start-up again. Disabled the add-on solved the crash. Uninstalling and then reinstalling the add-on sometime works.
here is my crash log.
https://cdn.discordapp.com/attachments/290709370600423424/1069723235446423633/failure_00000001.rar
Does loving/unloving also ignore the album tag? Will loving 1 song in different edition albums love all of them?
All lookups / storage are based on $lower($meta(artist,0) - %title%) with no consideration for album tags. This generally means the numbers will match anything you see on Last.fm track pages/charts but you won't get the album stats you get from diving deeper in to your Last.fm Library.
I got crashed on start-up again. Disabled the add-on solved the crash. Uninstalling and then reinstalling the add-on sometime works.
here is my crash log.
https://cdn.discordapp.com/attachments/290709370600423424/1069723235446423633/failure_00000001.rar
I checked but I can't do anything with that. It *seems* to be pointing at fb2k itself but I can't say for sure.
You'll just have to not use it because I don't have any crash reports from anyone else. I do have access to reports submitted via the built in crash reporter and there's nothing except really old ones.
2.0.11
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
Attempts have been made to possibly fix a multi-threading issue on startup.
All lookups / storage are based on $lower($meta(artist,0) - %title%) with no consideration for album tags. This generally means the numbers will match anything you see on Last.fm track pages/charts but you won't get the album stats you get from diving deeper in to your Last.fm Library.
I've seen that, I guess my question is more about local files. I have a playlist with %MOOD% !== 0
If I switch to this module, will same song in 3 different albums get tagged with %lfm_loved%?
I have no idea what you're dribbling on about. The content of any pre-existing tags/playlists are irrelevant. The component uses a database.
All lookups / storage are based on $lower($meta(artist,0) - %title%) with no consideration for album tags
If you can't understand that simple sentence, there is no hope for you.
2.0.12
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
I have no idea what you're dribbling on about. The content of any pre-existing tags/playlists are irrelevant. The component uses a database.
All lookups / storage are based on $lower($meta(artist,0) - %title%) with no consideration for album tags
If you can't understand that simple sentence, there is no hope for you.
wow ain't you a bitchy one. Where did you see anything about preexisting data in this sentence "If I switch to this module, will same song in 3 different albums get tagged with %lfm_loved%? "?
I
2.0.11
https://github.com/marc2k3/foo_lastfm_playcount_sync/releases
Attempts have been made to possibly fix a multi-threading issue on startup.
I haven't got crashed on startup since this update (almost 1 week). Thank you for the great work.
Is there any chance to get the last version of the components? Both 32-bit and 64-bit?
I'll post a new build tomorrow. It seems the latest fb2k SDK has some changes which are relevant to this component which could do with updating.
Thank you for the quick reply, it's nice to hear there will be an update.
2.1.1 minor tweaks and built with latest SDK...
Thank you for the update, the latest version works nicely!
2.1.1 minor tweaks and built with latest SDK...
dont work on 1.6.17, only for 2.0+
Yes, that is highlighted in the thread title.
Documentation has been restored here: https://jscript-panel.github.io/other/
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
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.
Damn! Oh well, thanks for the component regardless, I use it a lot.
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).
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 (https://community.metabrainz.org/t/how-is-listenbrainz-failing-to-identity-the-correct-recording/639331) suggests that Listenbrainz doesn't even use MBIDs, for some reason... Oh well.
That thread has nothing to do with loving/hating tracks by MBID, because the component mentioned has not that feature anyway.
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/
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.
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.
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.