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 386737 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

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

Reply #400
try running the import again and have the foobar console window open while you do it. does it appear to show the correct number of pages?

 

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

Reply #402
the database tab it shows 478 entries(i have a ~13000 songs database and ~14000 plays in last.fm)


so the 13000 tracks you mention here is your foobar library and not how many different tracks you've submitted to last.fm??? (and the 14000 plays is irrelevant because there is only 1 entry per track anyway regardless of how many times it's been played.)

yeah, 33 pages

http://twitpic.com/2mrpoc


1623 different tracks? so how many entries on the database tab now?

any chance you can share your last.fm username please so i can see for myself what's going on.

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

Reply #403
This plugin works great.
I thought you meant it'll synchronize plays after I play 10 seconds of every song in my library.
Fortunately, it synchronized plays so quickly  Looks really nice
I would like to add the "heart" in a column(so it exist there for every song) but I can't figure out how...

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

Reply #404
494 entries on the database, still not importing.

and yeah, i've scrobbled only 1623 different tracks from my library

my last.fm username is thnlopes: http://www.last.fm/user/thnlopes

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

Reply #405
This plugin works great.
I thought you meant it'll synchronize plays after I play 10 seconds of every song in my library.
Fortunately, it synchronized plays so quickly  Looks really nice
I would like to add the "heart" in a column(so it exist there for every song) but I can't figure out how...

As stated somewhere else (I believe in the help file or something like that), to display the loved status of the tracks in the playlist you add the following value to the column
Code: [Select]
$ifequal(%LASTFM_LOVED_DB%,1,?,)

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

Reply #406
494 entries on the database, still not importing.

and yeah, i've scrobbled only 1623 different tracks from my library

my last.fm username is thnlopes: http://www.last.fm/user/thnlopes


works fine here....



it's 1800 odd because of your loved tracks as well. all i can suggest is closing foobar, deleting the database file (usually found at %appdata%\foobar2000\customdb_sqlite.db) and trying again.

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

Reply #407
ok, i'll try to make this work

thanks for the help

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

Reply #408
Got everything sorted using Columns UI, there's juts one problem. Whatever I do using the WHS panel mod, the love heart doesn't fit the toolbar and there's a gap to the right hand side of it.


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

Reply #409
That's normal, you have to fiddle with the script to fine-tune the look. I have mine set with the following parameters to fit my UI perfectly. I have changed the Heart icon, but can't really remember if it makes any difference.
Code: [Select]
var bw = 16;
var bh = 16;
var top_margin = 2;
var left_margin = 2;
window.MinWidth = window.MinHeight = window.MaxWidth = window.MaxHeight = 20;

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

Reply #410
to make it look better you can also right click the panel and change the background colour to "splitter" so it matches the toolbar.

but i think you're stuck with the gap to the right as it's a problem with using WSH panel mod when added to the toolbar in CUI. if it was added as panel to your layout, you could resize it how you want.

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

Reply #411
I have to disagree, mine doesn't have that gap anymore. It's been a while since i messed with the code so can't really remember if I changed something besides the lines mentioned above.

EDIT: Indeed, the last line in my previous message is what does the trick. It sets the total size of the "window". In the code i posted it is set to 20, 16 for the button size (i reduced it to match CUI toolbar buttons size) + 4 (the 2 pixels margin on every edge). Perhaps you should consider adding it to your script too marc
Also, I found the Background option set to "None" to look even better since instead of trying to match the color (wich it doesn't here, btw) it just makes it transparent.

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

Reply #412
I try to set last.fm username or last.fm api and I get this error message.




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

Reply #413
sorry i have no idea what would cause that or how to fix it? have you been tweaking windows/stripping out components at all? that's all i can think of. the script has been tested to work fine on XP, vista and windows 7???

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

Reply #414
Hello! I have a problem with playcount_sync and foobar2000 on windows 7 32 bit

I'm trying to install playcount sync on clean foobar2000 1.1 portable installation. But when I add WSH panel to the layout and import the script - there is no buttons or something else on the panel, the panel is empty, Options "Create and import SQL file" and "Import SQL file" are unavailable ((

I was following the instructions but wsh panel doesn't work
🇺🇦 Glory to Ukraine!

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

Reply #415
well there is no difference between a portable install and standard install other than the fact the "configuration" folder resides in the main foobar directory when using portable mode. i can only suggest starting again from the top?? missing buttons/images would probably indicate you didn't extract the files from the zip properly.

@bloodclot, i forgot you can easily set your username/api key inside the script. just edit lines 17 and 19 like this...

17
Code: [Select]
var username = "marc2003";


19
Code: [Select]
var api_key = "123456.....";

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

Reply #416
I'm sure that I have properly extracted all files. E.g. all images are present in foobar2000\scripts\marc2003\v2\images folder

I have no idea why it doesn't work...
It have been working on previous installation of Windows 7, and on Win XP.

Maybe script needs some libraries like JRE or Visual C++  ???
🇺🇦 Glory to Ukraine!

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

Reply #417
i assume you have something in your playlist? it won't show any button if you start foobar with an empty playlist. as soon as you add a file or switch to a populated playlist, you will see a button....

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

Reply #418
))

Thank you!

Creating/importing buttons are now available too


And now I have another one question...


where the files from playcount_sync archive should be located in case of standard foobar2000 v1.1 instalation with user profiles enabled and separate user-components folders?
🇺🇦 Glory to Ukraine!

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

Reply #419
And again, the problem with script...

Quote
working....
Error: unable to open database "C:\Users\└фьшэшёЄЁрЄюЁ\Desktop\foobar2000\custom
db_sqlite.db": unable to open database file
Для продолжения нажмите любую клавишу . . .


I believe this happens because of cyrillic symbols in the path

User's appdata folder contains this symbols in it's path too.

Now I see the cause of all my problems with playcount sync.

marc2003, could you fix the problem with cyrillic symbols?
🇺🇦 Glory to Ukraine!

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

Reply #420
@bloodclot, i forgot you can easily set your username/api key inside the script. just edit lines 17 and 19 like this...

17
Code: [Select]
var username = "marc2003";


19
Code: [Select]
var api_key = "123456.....";


I actually tried that already. It doesn't change anything for some reason.

It's all good, I got the old version up and running again.

One question though, I have loved_tag_name to "RATING" and I want to change the number it updates the tag with from 1 to 5. How can I do this?

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

Reply #421
I don't think you can do that. The Loved value is a boolean (either True OR False), this is a Last.fm parameter, and it doesn't support rating. You probably should keep the original tag name and use a rating system appart from that.
Maybe, code an implementation into the script so that if a track has a rating of above, say, 4, then the script automatically "loves" it on Last.fm (and consequently on the customDB too). That way the rating and loving system would be somewhat integrated.

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

Reply #422
where the files from playcount_sync archive should be located in case of standard foobar2000 v1.1 instalation with user profiles enabled and separate user-components folders?


from the zip, the "scripts" folder still needs to go in the main foobar directory. as for the "components" you have 2 options...

a) place them in the main components folder as before
b) if you really want per user component settings, use the "install" button on the components page in the preferences to browse to the dll files.

the manual tells you where you need to place the foo_customdb.dll.cfg file.

And again, the problem with script...

marc2003, could you fix the problem with cyrillic symbols?


i don't think that has anything to do with the script. it looks to be a problem with the foo_customdb component.

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

Reply #423
Thanks for the reply

i don't think that has anything to do with the script. it looks to be a problem with the foo_customdb component.


But as I see, program can't save DB file into destination folder. And as far as I know this program is sqlite3.exe - don't we have the problem with it?

Because custom db component properly reads and writes database (e.g. if I "love" track this info stores to data base file)

Though, maybe I'm wrong...


P.S. How can I change the destination folder for saving customdb_sqlite.db (after downloading)?
🇺🇦 Glory to Ukraine!

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

Reply #424
Quote
as for the "components" you have 2 options...


and what about API files? Should I place them into the wsh panel's folder? Or in the "main" component folder?


add:

Looks like you was right when saying about custom_db component problem. Component can't save the new playcount value into the database
🇺🇦 Glory to Ukraine!