Skip to main content

Topic: HOW TO: synchronise your last.fm playback stats with foobar (Read 267730 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • marc2003
  • [*][*][*][*][*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #125
1) thanks for spotting. i'll get a corrected version uploaded. but only people with over 9000 plays for a track will have been affected so far.

and i don't see how your LFM_U can show 55. the action for the "Customdb U" should be set to 5. if there was a typo, it would have been spotted long before now. try playing the song for 10 seconds so it updates again and see what happens.

EDIT: updated version uploaded. all foo_customdb users should overwrite their foo_customdb.dll.cfg file with the new one in this upload.

http://cid-649d3bfeaf541fbb.skydrive.live....ount%20sync.zip
  • Last Edit: 22 January, 2010, 06:27:18 AM by marc2003

  • puserp
  • [*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #126
1) thanks for spotting. i'll get a corrected version uploaded. but only people with over 9000 plays for a track will have been affected so far.

and i don't see how your LFM_U can show 55. the action for the "Customdb U" should be set to 5. if there was a typo, it would have been spotted long before now. try playing the song for 10 seconds so it updates again and see what happens.


"never underestimate the stupidity"

I was able to spot your mistake in foo_customdb config, but made one myself. There was value 55 for CustomdbU 5 action. Shame on me

  • marc2003
  • [*][*][*][*][*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #127
currently, this script only supports play counts upto 9999 when using foo_customdb - i'm just wondering, is there anybody on here who is likely to run into this limitation any time soon? 

HOW TO: synchronise your last.fm playback stats with foobar
Reply #128
iv had my eye on this for a while but didnt fancy it due to it originally updating files.
now that its in customdb iv give it a whirl & i must say im very impressed.
managed to fit it into my cui very easily & even make a few mods through customdb.

thanks for your efforts marc2003, greatly appreciated

  • marc2003
  • [*][*][*][*][*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #129
minor update of config.

http://cid-649d3bfeaf541fbb.skydrive.live....ount%20sync.zip

-nothing new except the user credentials are now set in an external file. this means i can make future last.fm related panels but the end user only has to set their username in one place.
-contains some other sample WSH scripts

HOW TO: synchronise your last.fm playback stats with foobar
Reply #130
Hey Marc, this is a really nitpicky thing, but is there any way to add padding to the top of the love "heart button" in order for it to line up with other buttons better?

  • marc2003
  • [*][*][*][*][*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #131
sure, just find this line in the panel (it's near the top)

Code: [Select]
top_margin = dui ? 2 : 0;


2 is the default top margin for DUI, 0 is the default for CUI. modify these however you like.

HOW TO: synchronise your last.fm playback stats with foobar
Reply #132
Sorry, one more question... How do I set the newer version to use file tagging instead of custom_db?

  • marc2003
  • [*][*][*][*][*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #133
you need to edit the file \scripts\marc2003\lastfm.js

it's the first option after entering your username/api key. i don't see how you can miss it.

HOW TO: synchronise your last.fm playback stats with foobar
Reply #134
Sorry, I'm a slow one, lol.

HOW TO: synchronise your last.fm playback stats with foobar
Reply #135
Hey Marc, in which part of which script do we set custom colors? Thanks.

  • marc2003
  • [*][*][*][*][*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #136
you need to edit the file \scripts\marc2003\lastfm.js


again...  admittedly it's further on down the page but it's all commented. use the context menu to switch to it once you've set it.

HOW TO: synchronise your last.fm playback stats with foobar
Reply #137
you need to edit the file \scripts\marc2003\lastfm.js


again...  admittedly it's further on down the page but it's all commented. use the context menu to switch to it once you've set it.


Dawgoneit! I kept looking through fonts_colours_flags.js, lol

  • marc2003
  • [*][*][*][*][*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #138
New version

Quote
Updated 01/02/2010

This new version has some major changes from the previous version. It uses foo_customdb exclusively – no more file tagging support. If you require this, you can get the old version here.

New version features:

-   No more script editing. Everything is set via the context menu.
-   Removal of superfluous options. See above link if you want “auto love” and “add one” features from previous versions.
-   Storage of settings is now completely independent of the script so any future script updates means you can simply overwrite the files without having to backup/restore your settings manually.


no real reason for existing users to upgrade. i've just been playing around making it easier to use for new users.



  • Last Edit: 01 February, 2010, 08:22:31 AM by marc2003

  • MB.
  • [*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #139
marc2003 you are a hero !

  • unclean
  • [*][*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #140
Has anyone else not able been to get the autoplaylist method working with the standard installation on Vista or 7?

I have everything set up properly in my config, and copied foo_customdb.dll.cfg to %appdata%\foobar2000\configuration, but [%LFM_TH%][%LFM_H%][%LFM_T%][%LFM_U%] returns nothing. The console isn't showing errors, and other customdb actions like %PLAY_COUNT_CD% work.

Yet the exact same setup on a portable installation works perfectly. I have no idea what is happening.

marc2003 you are a hero !


!

  • marc2003
  • [*][*][*][*][*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #141
if you copied over the file while foobar was running, closing it probably over wrote it with the default settings? close foobar and copy over the file again. other than that, i have no idea. i've tested this on standard and portable installs.

look in the foo_customdb preferences at the "fields" and "action" tabs. that should tell you if my file is installed properly or not.
  • Last Edit: 02 February, 2010, 12:20:55 AM by marc2003

  • Sparanoid
  • [*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #142
hi marc2003, somebody got error message while using my skin MonoLite Plus, I don't know why, I try to translate the messege to English:

when he try to enter his last.fm account via context menu, he got input.wsf error:

char: 1
error: VBScript
code: 8007007E
source: Windows Script Host
  • Last Edit: 04 February, 2010, 11:14:42 PM by Sparanoid

  • marc2003
  • [*][*][*][*][*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #143
i have no idea but a quick google suggests trying this - start>search/run

regsvr32 scrrun.dll

also make sure windows is up to date.

i've tested my script on XP SP3 and windows 7 x64 with administrator and limited accounts and it all works fine.

  • Kuraj
  • [*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #144
This isn't working well for me. Although the panel does show whether my track is loved or not, it doesn't show up on NG Playlist. Additionally, i get an error upon leaving the application:

Code: [Select]
Microsoft Visual C++ Runtime Library

Runtime Error!

Program C:\Program Files (x86)\foobar2000\foobar2000.exe

R6025
- pure virtual function call


I'm running Windows 7 Ultimate x64.

  • Kuraj
  • [*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #145
Also, I tried the old version of plugin, with tag mode - which partially solved the problem since i was able to see the playcounts and love status - but I still get the mentioned error. Even disabling the foo_softplaylists and foo_customdb plugins didn't solve the issue, so I take it's foo_uie_wsh_panel_mod's fault.

  • maximillan
  • [*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #146
sorry foobar noob here, how make this work with DUI ?, i cant figure out how to add wsh panel. for clarification dui = default ui?

  • marc2003
  • [*][*][*][*][*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #147
Also, I tried the old version of plugin, with tag mode - which partially solved the problem since i was able to see the playcounts and love status - but I still get the mentioned error. Even disabling the foo_softplaylists and foo_customdb plugins didn't solve the issue, so I take it's foo_uie_wsh_panel_mod's fault.


no. i assume you're using one of those mono lite mod themes on DA? i've seen that error mentioned as a known issue and it has nothing to with this script or the components it uses. WSH panel mod,soft playlists and foo_customdb have been rock solid for me. and no one else has mentioned that error in the 2 months since i put this together.

sorry foobar noob here, how make this work with DUI ?, i cant figure out how to add wsh panel. for clarification dui = default ui?


you have to use layout editing mode found on the view menu to add a panel to your layout.

  • Kuraj
  • [*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #148
no. i assume you're using one of those mono lite mod themes on DA? i've seen that error mentioned as a known issue and it has nothing to with this script or the components it uses. WSH panel mod,soft playlists and foo_customdb have been rock solid for me. and no one else has mentioned that error in the 2 months since i put this together.


No, I'm not using any more off DA; here's my list of components:
Code: [Select]
Core (2010-01-09 12:47:00)
    foobar2000 core 1.0
foo_albumlist.dll (2010-01-09 12:44:46)
    Album List 4.4
foo_audioscrobbler.dll (2010-02-06 21:14:04)
    Audioscrobbler 1.4.5
foo_cdda.dll (2010-01-09 12:44:42)
    CD Audio Decoder 3.0
foo_converter.dll (2010-01-09 12:44:32)
    Converter 1.4
foo_dsp_std.dll (2010-01-09 12:44:48)
    Standard DSP Array 1.0
foo_input_std.dll (2010-01-09 12:44:24)
    Standard Input Array 1.0
foo_mlt.dll (2007-10-27 21:35:30)
    Miranda ListeningTo foobar2000 Plugin 1.0
foo_musicbrainz.dll (2009-04-10 21:27:28)
    MusicBrainz Tagger 0.2
foo_rgscan.dll (2010-01-09 12:44:24)
    ReplayGain Scanner 2.0.9
foo_ui_columns.dll (2010-01-09 15:40:28)
    Columns UI 0.3.8.3
foo_ui_std.dll (2010-01-09 12:44:52)
    Default User Interface 0.9.5
foo_uie_albumlist.dll (2009-06-13 23:49:19)
    Album list panel 0.3.5
foo_uie_lyrics2.dll (2010-02-03 00:35:08)
    Lyric Show Panel 2 0.4.6.12
foo_w7shell.dll (2010-01-17 04:09:20)
    Windows 7 integration 0.2.9.1


Now that I think about it, it might be one of those; I'll play with them tomorrow, and see if it works.

  • marc2003
  • [*][*][*][*][*]
HOW TO: synchronise your last.fm playback stats with foobar
Reply #149
could be lyrics. that's pretty unstable by all accounts.