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: HOW TO: synchronise your last.fm playback stats with foobar (Read 390577 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

HOW TO: synchronise your last.fm playback stats with foobar

Reply #350
Haha, you are right. It's minor and doesn't have much to do with this.

It's weird because, I'm guessing, most tracks scrobble, but this track doesn't.. or these. All these FFVI songs don't seem to scrobble beyond one lastfm_playcount. Playing them again just shows:

Quote
Playcount sync: Last.fm responded 'OK'
Playcount sync: Playcount not updated. No changes found.


Now I really have nothing more to say, though I feel I basically repeated myself practically.

HOW TO: synchronise your last.fm playback stats with foobar

Reply #351
i suspect that's the last.fm spelling correction at work. check your profile page for recent scrobbles against your tags and you might see what's different. this subject was covered a few page back...

edit: the reason it shows "1" on the first play is because i'm faking it. i add 1 to whatever is returned by last.fm to take into account a scrobble isn't counted until playback stops.

 

HOW TO: synchronise your last.fm playback stats with foobar

Reply #352
So marc... quick question.

How hard would it be for me to edit the current version of the script to write regular tags instead of custom_db? Is it just a matter of changing the %custom_db% fields in the script to my desired fields?

HOW TO: synchronise your last.fm playback stats with foobar

Reply #353
Thanks.. looks nice!

Where do i place that $ifequal(%LASTFM_LOVED_DB%,1,♥,) command?

Edit, FooText is able to output the scriptcommand.. but how do i integrate it inside the Playlist-panel like you did, shown in this image?
I cannot add it as a Custom Column, like i did with "%LASTFM_PLAYCOUNT_DB%".. that one works fine

HOW TO: synchronise your last.fm playback stats with foobar

Reply #354
if you're running XP you need to install asian font support to get the ♥ symbol. other than that, it should work anywhere as it's just normal title formatting.

HOW TO: synchronise your last.fm playback stats with foobar

Reply #355
So marc... quick question.

How hard would it be for me to edit the current version of the script to write regular tags instead of custom_db? Is it just a matter of changing the %custom_db% fields in the script to my desired fields?


Still wondering if this would work... I mean I guess I could try, but I'd rather not screw with my current script unless this is possible. The only reason I'd try this is because the last version of your script that supported actual tag writing is pretty old at this point.

HOW TO: synchronise your last.fm playback stats with foobar

Reply #356
i've made the necessary modifications here. remember the library import still requires customdb - it's not possible to do that with file tagging.

http://pastie.org/1020191


HOW TO: synchronise your last.fm playback stats with foobar

Reply #358
i just realised i forgot to remove an extra line i put in for testing. remove line 91.

HOW TO: synchronise your last.fm playback stats with foobar

Reply #359
As last.fm autocorrects some artist names, it is not possible to "love" tracks of this artists directly from foobar2000 - in fact you "love" either track, not track that will be scrobbled.
And here is my question: is it possible to autocorrect this artists' names using some info requested from last.fm. It would be great to see plugin that will be able to do it.

Or maybe it would be better to autocorrect artist name "on the fly" before loving the track?
🇺🇦 Glory to Ukraine!

HOW TO: synchronise your last.fm playback stats with foobar

Reply #360
I believe Last.fm are working on a new version of the API to allow this very feature. (The "update metadata from Last.fm corrections" one.)

HOW TO: synchronise your last.fm playback stats with foobar

Reply #361
So, then I'll ask marc2003 for including this feature into the next playcount sync versions.
🇺🇦 Glory to Ukraine!

HOW TO: synchronise your last.fm playback stats with foobar

Reply #362
the love track feature is provided by foo_softplaylists. nothing i can do about that.

HOW TO: synchronise your last.fm playback stats with foobar

Reply #363
So, the only way to go is creating special plugin, something like tagger, right?  it would be nice to see this plugin...
🇺🇦 Glory to Ukraine!

HOW TO: synchronise your last.fm playback stats with foobar

Reply #364
If I'm remembering (and understanding) the blog post properly, the correction data would be sent back over the API protocol at the time of submission, so it would probably be best incorporated in foo_audioscrobbler (or something similar).

HOW TO: synchronise your last.fm playback stats with foobar

Reply #365
I'm sorry but I'm new to foobar (as in I just downloaded it a few hours ago), but I wanted to try out this plugin. I don't what the instructions meant by "add a WSH panel to your layout."

Could someone help me out with this?


HOW TO: synchronise your last.fm playback stats with foobar

Reply #367
Yeah. I feel like I'm doing this completely wrong.
My foobar looks like this now:



HOW TO: synchronise your last.fm playback stats with foobar

Reply #368
i'm not really sure how you managed that. goto the view menu>layout>quick setup and pick something from the "main layout" on the left hand side. there really isn't much else i can say apart from read that first link again.

HOW TO: synchronise your last.fm playback stats with foobar

Reply #369
i'm not really sure how you managed that. goto the view menu>layout>quick setup and pick something from the "main layout" on the left hand side. there really isn't much else i can say apart from read that first link again.


I went to View > Layout > Create Scratchbox then right click > Add New UI Element > WSH Panel Mod. I imported the playcount sync script, then hit apply and okay. Edit > Apply Layout and then that's it.

I'm using the Album List + Properties Layout.

What could I be doing wrong?

HOW TO: synchronise your last.fm playback stats with foobar

Reply #370
Nevermind. I got it working.

HOW TO: synchronise your last.fm playback stats with foobar

Reply #371
I followed all the instructions, everything installed correctly, and both test.sql and customdb_sqlite.db are populated, but the playcount list remains empty, as does the loved column.

Console output:
Code: [Select]
Opening track for playback: "Z:\Music\Full Albums\65daysofstatic\[65 Days Of Static] - One Time For All Time\01 - Drove Through Ghosts To Get Here.flac"
Playcount sync: Contacting Last.fm....
Playcount sync: Last.fm responded 'OK'
Playcount sync: Contacting Last.fm....
Playcount sync: Last.fm responded 'OK'


This track is loved and has plays already, but the columns are still empty. Just to try I tested with a mp3 version of the track but the issue persists.

HOW TO: synchronise your last.fm playback stats with foobar

Reply #372
right click any track in the playlist and look under "Legacy Commands (unsorted)". do you see 4 customdb entries like this?

Code: [Select]
Customdb Love 1
Customdb Love 0
Customdb Delete Playcount
Customdb Refresh


if not, then you didn't put foo_customdb.dll.cfg in the correct place. check the readme again.... (and make sure foobar is closed while you do it)

if the context menu is correct, what happens when you open a library search window and type in

Code: [Select]
%LASTFM_PLAYCOUNT_DB% PRESENT


also it might be worth looking under preferences>tools>custom database>database tab. how many entries are there?

HOW TO: synchronise your last.fm playback stats with foobar

Reply #373
Sorted, I presume that the cfg was overwritten when I closed and reopened F2K with the old version. Works perfectly, cheers!

HOW TO: synchronise your last.fm playback stats with foobar

Reply #374
i'll update the readme so hopefully it won't happen again.