are you sure only one instance of the panel exists in your layout? and even if there were duplicate requests, it would not affect playcount data. this is because a scrobble does not count until the track has finished. so even if there were multiple queries, the result would always be the same - of course i add 1 to increment the playcount but no matter how many times this were to happen, it would not increment by more than 1.please describe exactly what you are seeing.
and the playcount increases from 0 to 2 instantly.
Quoteand the playcount increases from 0 to 2 instantly.sorry but i'm more inclined to think you are mistaken and last.fm already has a playcount of 1 stored for that track. login to the website and browse the Library section. http://www.last.fm/user/YOU/librarybrowse for the artist/track and it will show the time and date of each individual scrobble.
this.userplaycount = this.parsed_data.track.userplaycount > 0 ? ++this.parsed_data.track.userplaycount : 1;
foo_audioscrobbler.dll (2008-05-13 21:36:16 UTC)Audioscrobbler 2.3.1
When is a scrobble a scrobble?A track should only be scrobbled when the following conditions have been met: The track must be longer than 30 seconds. And the track has been played for at least half its duration, or for 4 minutes (whichever occurs earlier.)As soon as these conditions have been met, the scrobble request may be sent at any time. It is often most convenient to send a scrobble request when a track has finished playing.
Shouldn't your script be compatible with the official scrobbler?
Quote from: iamthejeff on 27 February, 2013, 03:20:58 PMShouldn't your script be compatible with the official scrobbler?nope, everyone around here uses Florian's component. you're the first with this complaint. if i did add support i'd have to complicate things by telling people not to touch that slider. i'm kind of reluctant really but i can tell you how to edit your own script. it'll have to be later on as i'm about to watch something on TV.
this.target_time = 5 + Math.min(Math.floor(fb.PlaybackLength / 2), 240);
this.userplaycount = this.parsed_data.track.userplaycount;
i think reverting the code change and increasing the slider is the best bet.
WSH Panel Mod (Last.fm Playcount Sync v6.2013-01-23.01 by marc2003): Parsing file "C:\Program Files (x86)\foobar2000\marc2003\common6.js"Error: WSH Panel Mod (Last.fm Playcount Sync v6.2013-01-23.01 by marc2003): Microsoft JScript runtime error:Object requiredFile: C:\Program Files (x86)\foobar2000\marc2003\common6.jsLn: 87, Col: 3<source text only available at compile time>
The current script requires WSH panel mod version 1.5.0 or above.The latest version 1.5.6 is available here:http://code.google.com/p/foo-wsh-panel-mod/downloads/listYou can check your component version by looking at File>Preferences>Components>WSH panel mod.Also, if you've made any changes to the default settings, checkthe right-click menu to see if they're all intact. Some settingsmay be lost during the upgrade as I've changed the way someof them are stored.Your username will still be intact and of course all playcount data will remain exactly the same as before. There have been no changes as far as that is concerned.And from now on, you can check for the latest version simplyby right clicking the button and selecting "Update script".
Everything worked fine until yesterday, and all of a sudden the panel keeps crashing. I didn't change anything, but just to make sure I set everything up from scratch, re-installed components, made sure I used the newest version of the script... QuoteWSH Panel Mod (Last.fm Playcount Sync v6.2013-01-23.01 by marc2003): Parsing file "C:\Program Files (x86)\foobar2000\marc2003\common6.js"Error: WSH Panel Mod (Last.fm Playcount Sync v6.2013-01-23.01 by marc2003): Microsoft JScript runtime error:Object requiredFile: C:\Program Files (x86)\foobar2000\marc2003\common6.jsLn: 87, Col: 3<source text only available at compile time>EDIT Applied one of my infamous duct-tape style fixes - commented line 87. Seems to work for now.