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 386910 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 #1075
And have you checked why your API key is suspended?
Windows 10 Pro x64 // foobar2000 1.3.10

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

Reply #1076
I thought the api key was bound to the application or the developer?

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

Reply #1077
First time trying this. I was super excited, but then I realized the API is not working... please fix it, this is an incredible script!!!

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

Reply #1078
I have the same message
Last.fm Playcount Sync: Contacting Last.fm....
Last.fm Playcount Sync: {"error":26,"message":"Suspended API key - Access for your account has been suspended, please contact Last.fm","links":[]}

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

Reply #1079
Ah, I'm using the old file-based version, where you use your own key.
Windows 10 Pro x64 // foobar2000 1.3.10

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

Reply #1080
to All, change in common8.js in strings 1813&1814 api-key&secret to your own, get it http://www.last.fm/api/account/create
Code: [Select]
1813    this.api_key = "56d9e050cc2d6b36102c8b4a5fe6152d";
1814    this.secret = "9f1f4346ce3ba206390074ff8cb4c6ce";

Marc, please add ability to change api-key&secret through your wsh script and maybe take out them from common#.js to external file for correct updates.

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

Reply #1081
I have the same issue since yesterday - playcount doesn't sync and when trying to "like" a song (using password field in WSH panel I get the following message:

http://puu.sh/eGvgt/dec3e0a4ed.png

Quote
to All, change in common8.js in strings 1813&1814 api-key&secret to your own, get it http://www.last.fm/api/account/create
CODE

where is common8.js located at?

edit: ok I've found the file in \Foobar2000\marc2003\common7.js , lines 1895

go to http://www.last.fm/api/account/create , input something in fields and you get the new keys

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

Reply #1082
I have the same issue since yesterday - playcount doesn't sync and when trying to "like" a song (using password field in WSH panel I get the following message:

http://puu.sh/eGvgt/dec3e0a4ed.png

Quote
to All, change in common8.js in strings 1813&1814 api-key&secret to your own, get it http://www.last.fm/api/account/create
CODE

where is common8.js located at?


C:\Users\USERNAME\AppData\Roaming\foobar2000\marc2003

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

Reply #1083
thank you all, CGGB's solution helped and now the playcount is synced and "love' works again.

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

Reply #1084
Hi I have done this, now I got following message:
{"error":26,"message":"Suspended API key - Access for your account has been suspended, please contact Last.fm","links":[]}

what to do?

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

Reply #1085


Edit: now it is working


My Settings:
this.api_key = "new key";
   this.secret = "new key";
   this.ua = "foobar2000_wsh_panel_mod_lastfm";

Important when creating a new key, to use as application name "foobar2000_wsh_panel_mod_lastfm", otherwise it will not work.

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

Reply #1086
The initial library import worked perfectly for me a few days ago, but today I ran it again so it would import some plays scrobbled from my phone. When I run the import I see the following in the console:

Last.fm Playcount Sync: Starting import...
Last.fm Playcount Sync: Nothing found to import.
Last.fm Playcount Sync: Contacting Last.fm....
Last.fm Playcount Sync: {"error":26,"message":"Suspended API key - Access for your account has been suspended, please contact Last.fm","links":[]}

Previous posts suggest creating an API key using the page http://www.last.fm/api/account/create but what info do I need to enter for:

Application/Device Name
Application Description
Application Homepage

I'm running Foobar200 v1.3.7 in portable mode. The script was updated to Common file: 8.2015-01-17.01

Please advise.

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

Reply #1087
just download and save this in your marc2003 folder.

http://marc2003.x10host.com/common8.js

i can't update my main files hosted on dropbox until in the week sometime.

edit: i think passwords will need to be set again again because of the new api key in it.

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

Reply #1088
Thanks for the quick response guys. Alright so it seemed to work properly, only problem is I don't know how to create a playlist with this. I'm making a new view on Library Tree with the field of %LASTFM_PLAYCOUNT_DB% but it's not grabbing anything.

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

Reply #1089
it should work. have you done a library search to check how many files got updated after the import?

Library menu>search

Code: [Select]
%LASTFM_PLAYCOUNT_DB% PRESENT

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

Reply #1090
I'm not sure if I get what you mean, but it seems that I'm getting nothing there either.



In case you feel like seeing it, I'm sending you my portable Foobar on a note link on DA (because IIRC I can't share it here). The panel for your script is hidden under library.

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

Reply #1091
you haven't followed this part of the instructions:

Quote
Install the foo_customdb component and if you've never used it before then you can extract the configuration folder from playcount sync.zip and place it inside your foobar2000 profile folder. You should know where this is after reading the previous Setup page.

Important: If you use foo_customdb for your own purposes then you should not use the configuration folder that I supply. Instead, you'll have to edit the database entries manually. Here are the steps to follow. You should do this before continuing.


if you need them, the manual database configuration instructions are at the bottom of this page: http://marc2003.x10host.com/lastfm-playcount-sync




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

Reply #1092
You mean I haven't installed foo_customdb? I had it on user-components (don't know how it got there, probably came with the theme). I downloaded it again, put it on components (and deleted the one from user-components), then I pasted the configuration file on the root of foobar and retrieved the playcounts/loved tracks again, but I'm still getting nothing.

This shouldn't look like this, right? It should have the last.fm field on it...


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

Reply #1093
Quote
then I pasted the configuration file on the root of foobar


why would you do that? the instructions say to extract the configuration folder to the foobar profile. you're the first person in 5 years to question this.

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

Reply #1094
Oh, yes, I already had that were it belong, I confounded the file names. So I moved stuff around and then when I opened foobar2000.exe, it crashed. I thought maybe I had fiddled too much with this one and tried an older backup I had, replacing each file were it belongs:

foo_customdb.dll and foo_customdb.txt are on components
foo_customdb.dll.cfg is on configuration
marc2003 folder is on root
wsh panel has playcount sync.txt loaded

It still crashes and it's being caused by foo_customdb.dll.cfg
http://pastebin.com/sSUuzaF6

edit: i'm gonna do a fresh install of the theme to see if i can get it to work there.

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

Reply #1095
i can't edit above's post anymore for some reason ???

wanted to add that i did 2 portable installs from 0, but none of them worked. by this point i'm thinking it's the library tree thing... sent you fresh install + your script installed on da so you see what i mean

assuming this is true, i wonder if the script has a way to tag this playlist info into the files? because it will certainly pick it up that way.

 

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

Reply #1096
at the moment, i can't access your file download or even pastebin (even skydrive and most image hosts are banned on my current internet - it's free so i can't complain too much. google drive is available if you have a google account). anyway, it would seem you still don't have the .cfg file i supply installed correctly.

foo_customdb is notoriously unstable with the default configuration and does crash a lot - which is exactly why i supply a pre-configured file for people to use. it has never crashed on me and i've been at this for nearly 5 years now. no one else has reported crashes either. the only component related problem that has been reported over the years is slow performance on large collections (40,000+ tracks) - but as i have nothing to do with component development, there isn't anything i can do about that.

when the .cfg file is used correctly, your foo_customdb preferences should look like this:

https://drive.google.com/file/d/0B6f0H8likO...iew?usp=sharing

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

Reply #1097
Hi Marc

would it be possible to have have a small script within the wsh panel that will reflect all upcoming events in whatever country where you live, dragged out of Last.FM?
Like the url page on last.fm: http://www.last.fm/events/+place/Switzerland

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

Reply #1098
it's possible but i won't be doing it. for me to make something, i generally have to be motivated by the fact it's something i'd want to use. in this case, i don't.

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

Reply #1099
it's possible but i won't be doing it. for me to make something, i generally have to be motivated by the fact it's something i'd want to use. in this case, i don't.


No problem. if you could give me tip or an advise, I will do it myself

thanks!