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 390556 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 #600
from the readme:

Quote
3)   Extract the marc2003 folder from this zip into your foobar profile directory. On a standard foobar install this directory will be located at

%appdata%\foobar2000\

If using portable mode just dump it inside the main foobar install directory.

4)   If you’ve never used foo_customdb before then you should also extract the configuration folder to the same folder location as above.


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

Reply #601
from the readme:

Quote
3)   Extract the marc2003 folder from this zip into your foobar profile directory. On a standard foobar install this directory will be located at

%appdata%\foobar2000\

If using portable mode just dump it inside the main foobar install directory.

4)   If you’ve never used foo_customdb before then you should also extract the configuration folder to the same folder location as above.




Ah thanks. For some reason I haven't noticed that.

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

Reply #602
Every time I click on Create and import SQL file, I get the message "Aww, crashed " Grr!

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

Reply #603
main menu>view>console might give something more helpful...

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

Reply #604
so I tried the whole thing today. I have the latest foobar version, Ive added latest versions of components as instructed and did all I should. I think

wsh mod added, library imported (even though wsh displayed a crash on the way) so it should be good. the only thing not matching the readme file is that the "legacy commands unsorted" do not contain the love and playcount commands (I copied the folder specified to the app data folder).
even though, loving the track by a foobar icon is shown on my last.fm profile which is great

still though, I cannot get the columns in my playlist to display neither playcount nor loved status (I created the columns with the code specified).
any ideas what I should do to make it work? maybe it was already discussed before but I did not manage to find it.

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

Reply #605
you haven't installed foo_customdb properly. the link is in section 2 of the readme.

edit: script now updated and will warn you when the aforementioned component is not installed. also, clarified readme a little to explain that you must check the legacy commands (unsorted) context menu commands exist before continuing.

http://dl.dropbox.com/u/22801321/playcount%20sync.zip

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

Reply #606
you were right, I made a mistake in one of the steps with custom database. the plugin works now just fine. thx very much for this awesome plugin and your help

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

Reply #607
hey marc, thanks for a great work...

unfortunately i'm having a problem =>

error message:

Code: [Select]
Scripting Engine Initialization Failed (Playcount Sync by marc2003, CODE: 0x80020101)
Check the console for more information (Always caused by unexcepted script error).


console:

Code: [Select]
WSH Panel Mod (Playcount Sync by marc2003): Parsing file "C:\Users\xxx\AppData\Roaming\foobar2000\marc2003\common.js"
WSH Panel Mod (Playcount Sync by marc2003): Parsing file "C:\Users\xxx\AppData\Roaming\foobar2000\marc2003\tooltip_buttons.js"
Error: WSH Panel Mod (Playcount Sync by marc2003): Microsoft JScript runtime error:
Automation server can't create object
Ln: 372, Col: 1
<source text only available at compile time>


as you previously (and in the read me) said, i unchecked, rechecked and unchecked "safe mode" in wsh panel mode several times to no avail - error persists

any help, pls?

edit:
versions of required components i installed:

wsh panel mod 1.4.3
custom database 0.1.0_beta1
soft playlists 2011-02-05

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

Reply #608
and i forgot to mention:
i'm using DarkOne v3.0.1 theme
(see picture with newly created panel for love/ban)




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

Reply #611
Quote
Automation server can't create object


if you really have disabled safe mode, then your windows is broken in such a way i wouldn't know know to fix. i assume you are definitely running windows and not WINE through linux?? your screenshot certainly looks like windows.....

does the panel crash if you clear all text and have this one line of code??

Quote
var WshShell = new ActiveXObject("WScript.Shell");


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

Reply #612
thank you, marc, for a quick answer.

Quote
if you really have disabled safe mode, then your windows is broken in such a way i wouldn't know know to fix. i assume you are definitely running windows and not WINE through linux?? your screenshot certainly looks like windows.....

Win7 x64

Quote
does the panel crash if you clear all text and have this one line of code??

var WshShell = new ActiveXObject("WScript.Shell");

yes, with almost the same messages =>

Code: [Select]
err msg:
Scripting Engine Initialization Failed ({AFD1C6E9-84EB-4FD7-A6A2-224AD9102730}, CODE: 0x80020101)
Check the console for more information (Always caused by unexcepted script error).

console:
Error: WSH Panel Mod ({AFD1C6E9-84EB-4FD7-A6A2-224AD9102730}): Microsoft JScript runtime error:
Automation server can't create object
Ln: 1, Col: 1
<source text only available at compile time>

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

Reply #613
well i'm stumped then.

you haven't used any tools to strip files out of your windows ISO/dvd before you installed it? it's not subject to any restrictions like on a windows server domain?

if you're running a bog standard install, i guess you could report the issue in the main WSH panel mod component thread....

http://www.hydrogenaudio.org/forums/index....showtopic=70363

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

Reply #614
Hi Marc, thanks for all the hard work, the script rocks. Unfortunately after getting it working yesterday, I had to do a system restore after messing something else up, which wiped foobar back to how it was before. I've gone through doing it just as I did last time, but when I try to initialise the customdb, it crashes and says

Quote
Error: WSH Panel Mod (Playcount Sync by marc2003): Microsoft JScript runtime error:
'parsed_data.lovedtracks.@attr' is null or not an object
Ln: 170, Col: 16
<source text only available at compile time>


Oddly it did that the first time, so I tried again and it worked, but then it failed after a few pages, and now won't work at all.

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

Reply #615
last.fm are having pretty major problems today. obviously their servers playing up shouldn't cause my scripts to crash - i should be able to handle it gracefully. i'll look into handling errors better.

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

Reply #616
Ah yeah, it managed to work again but then died on sync 40 of 84.

It's nice to know that I'm not doing something wrong though, thanks


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

Reply #618
To give a bit more detail on the last.fm issue... Their main submission servers failed and then their backups failed at pretty much the same time. Bad news all around, but they're working on it.

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

Reply #619
another little update: http://dl.dropbox.com/u/22801321/playcount%20sync.zip

last.fm being sketchy the last day has thrown up a little conundrum for me with the way my script works. at the moment it checks to see if the local playcount is different from what is fetched from last.fm. and if different, the value from last.fm always takes precedence- afterall you could have scrobbled from other computers/devices and you want the update to show. if last.fm was completely down, you'd keep your local playcount and you'd get an error in the foobar console.

the problem at the moment is that last.fm is not throwing errors but infact returning valid data for a given track  - but it's not returning user data with it. my script assumes it hasn't been played before so it overwrites the existing playcount with 1 play. do you guys think the script should only overwrite if the value returned from last.fm is more than the local value? the only downside i can see from this is if you clear your stats/remove tracks from your last.fm library and then play them again, you'd have to manually clear the local database as well.

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

Reply #620
Hi,
I'm a long time lurker on hydrogenaudio. I've decided to finally make an account and deal with the problem I'm having.

Here's the story. Having previously the 1.0.1 version of foobar with lots of stuff on it, I decided to use this skin: http://sparanoid.com/work/monolite-plus/ - the monolite plus. Everything worked like a charm. Unfortunately, I did a clean install of foo 1.1.7 and reapplied the skin again, hoping for the best. As usual, it did not go so smooth this time.

The actual error:
Quote
Scripting Engine Initialization Failed (GUID: 5DB6173B-8325-480E-8302-360E421ECF7D, CODE: 0x80020101)
Check the console for more detailed information (Always caused by unexcepted script error).


And the console log:
Quote
Custom Database: Initialize
Custom Database: table quicktag already exists (1)
Custom Database: table database_version already exists (1)
Custom Database: index url_idx already exists (1)
Custom Database: Completed
WSH Panel Mod (GUID: 1F73EB63-C052-4E32-8A7A-BF4FBF6C1430): initliased in 0.0000062 s
WSH Panel Mod (GUID: 82E26BE2-93C2-497A-BFE4-C40892B2AFDD): initliased in 0.0000009 s
WSH Panel Mod (GUID: ED89F4DA-FDCC-4CBC-8DDB-58D202FD6BF3): initliased in 0.0000003 s
WSH Panel Mod (GUID: 5DB6173B-8325-480E-8302-360E421ECF7D): Parsing file "C:\Program Files\foobar2000\skin\mono_lite\scripts\common.js"
Error: WSH Panel Mod (GUID: 5DB6173B-8325-480E-8302-360E421ECF7D): Microsoft JScript - błąd czasu wykonywania:
Nie można odnaleźć ścieżki.
Ln: 183, Col: 38
<source text only available in compile time>
Startup time : 0:00.461587


The "Microsoft JScript - błąd czasu wykonywania: Nie można odnaleźć ścieżki." part is basically the unknown file path error. Apparently it can't find something, although the skin and all the scripts are where they should be.

Some help would be greatly appreciated, as I'm no programmer.

Cheers,

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

Reply #621
i'd be more inclined to believe the component when it says it can't find a file over taking your word for it.

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

Reply #622
Ok then, what do I do?

Here's some proof.

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

Reply #623
having looked at the theme, it seems it's taken the nonsensical decision that you must use portable mode. however, because your foobar folder is inside "program files", the script doesn't have permission to create the folders it needs to work. so move the folder into documents or desktop or somewhere else where you have permission.

new version uploaded: http://dl.dropbox.com/u/22801321/playcount%20sync.zip

-now maintains current playcounts if last.fm is being an ass (not throwing errors but not returning proper user data either)

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

Reply #624
Alright, here's what I've done so far.

Tried reinstalling foo in a different folder, non-Program Files one - did not work.

Portable version - works, but there's still an issue with the WSH.