My fork of js-marc2003 that contains some fixes and improvements in most cases for last.fm scrobbler.
Main changes:
- Add compatibility with database populated by old WSH Panel Mod
- Able to perform playcount sync only (without scrobbling)
- Fix scrobbler button behavior
- Make it work on Linux
-
For Last.fm functionality: Custom Database component
-
Add two fields:
LASTFM_LOVED_DB
. Key:$crc32($lower(%artist%%title%))
LASTFM_PLAYCOUNT_DB
. Key:$crc32($lower(%artist%%title%))
-
Add actions:
Customdb Love 1
. Field:LASTFM_LOVED_DB
. Update:Contexmenu
. Set value:1
.Customdb Love 0
. Field:LASTFM_LOVED_DB
. Update:Contexmenu -> Erase
.Customdb Delete Playcount
. FieldLASTFM_PLAYCOUNT_DB
. Update:Contexmenu -> Erase
.Customdb Refresh
. FieldLASTFM_PLAYCOUNT_DB
. Update:Contexmenu
. Set value:[%LASTFM_PLAYCOUNT_DB%]
.
-
-
Install winetricks and some of its components:
-
to support JScript:
:~$ winetricks wsh57
-
to support
ActiveXObject
object::~$ winetricks ie6_full
-
-
Import json2.js lib before other imports in script files
// ==PREPROCESSOR== … // @import "%fb2k_profile_path%js_marc2003\js\json2.js" … // ==/PREPROCESSOR==
-
After performing "Library import" it cannot run bat file from the application to update the database. So execute
update_db.sh
manually. This will executelastfm_sql.cmd
and will updatecustomdb_sqlite.db
with a query stored inwsh_data/lastfm.sql
.
scripts for foobar2000 + JScript Panel