Author Topic: XMPlay Last.fm/Audioscrobbler plugin (xmp-scrobbler)  (Read 539750 times)

yagood

  • Posts: 215
2007-12-12 15:19:53   [DEBUG] Submitting...
2007-12-12 15:19:53   [DEBUG] Submission failed: bad authorization.
[/quote]

This error is also known to happen when Last.fm servers are down.

i noticed that xmplay with scrobbler turned on becames very sensible to internet connection.

Could you post your log file at the time of such crash please?

Dimon3000

  • Posts: 9
Is it ok to submit 10 tracks, when i listen only one?
XMPlay 3.4.2.18
Quote
2007-12-13 20:04:10   ----
2007-12-13 20:04:10   [INFO] Hello, this is xmp-scrobbler 0.8
2007-12-13 20:04:10   [DEBUG] GetVersion() = 170393861 (5.1, build 2600)
2007-12-13 20:04:10   [DEBUG] curl_version() = libcurl/7.16.2 OpenSSL/0.9.8a zlib/1.2.3
2007-12-13 20:04:11   [DEBUG] DSP_NewTrack (OPEN)
2007-12-13 20:04:11   [DEBUG] XMP_ScrobInit() started
2007-12-13 20:04:11   [DEBUG] CacheManager::Load()
2007-12-13 20:04:11   [DEBUG] Resizing cache array - new length: 14
2007-12-13 20:04:11   [INFO] Number of entries in the cache: 15
2007-12-13 20:04:11   [DEBUG] Scrobbler::init() - cache loaded, doing handshake...
2007-12-13 20:04:11   [DEBUG] XMP_ScrobInit() finished
2007-12-13 20:04:12   [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2007-12-13 20:04:12   [DEBUG] Handshaking: Client up to date.
2007-12-13 20:04:12   [DEBUG] http://87.117.229.205:80/protocol_1.1
2007-12-13 20:04:12   [DEBUG] Submit interval set to 1 second(s).
2007-12-13 20:04:12   [DEBUG] Handshake successful.
2007-12-13 20:04:12   [INFO] Handshake with Last.fm server successful!
2007-12-13 20:04:20   [DEBUG] XMP_FetchInfo -- start
2007-12-13 20:04:20   [INFO] Track MusicBrainz ID: e8cfa4c8-89be-4809-ace6-ba161901436b
2007-12-13 20:04:20   [DEBUG] XMP_FetchInfo -- end
2007-12-13 20:04:20   [DEBUG] len = 128, diff = 8
2007-12-13 20:04:20   [INFO] Current track: CLSM - Drifting Away (feat. Stefan B) (Bonkers 13: Hardcore Horror Show (disc 4))
2007-12-13 20:04:20   [INFO] Submitting in 120 seconds...
2007-12-13 20:06:20   [DEBUG] DSP_Process -- sec <= 0
2007-12-13 20:06:20   [DEBUG] XMP_SubmitProc start
2007-12-13 20:06:20   [DEBUG] Resizing cache array - new length: 28
2007-12-13 20:06:20   [DEBUG] AddTrack (cache_size = 15, tracks_size = 28)
2007-12-13 20:06:20   [INFO] Track added to the cache for submission
2007-12-13 20:06:20   [INFO] Preparing to submit 10 track(s) from the cache
2007-12-13 20:06:49   ----
Then crash =(

Zarggg

  • Posts: 1242
It's trying to submit the files you have not yet submitted. If it's crashing when submitting cache (as it has for me in the past), try deleting your cache file to see if that fixes the problem. If not, you may need to delete the plugin entirely and reinstall.

jord

  • Posts: 4
it's a kind of strange, but i can't make it crash anymore. :)

Midi

  • Posts: 5
My music computer has no internet right now so I can't submit the tracks to last.fm. If the cache size goes above ~200 KB XMPlay crashes, which is really annoying. Can you fix this?

Dotpitch

  • Posts: 2871
My music computer has no internet right now so I can't submit the tracks to last.fm. If the cache size goes above ~200 KB XMPlay crashes, which is really annoying. Can you fix this?

...your cache file explains quite a lot. If you look closely at it you'll see that at the end there's a malformed cache entry which is most likely causing the problem. So the question is, how did it get there? :-) I'll investigate this bug when I have some free time...

I guess you've got problems with this bug as well...

Any progress on that bug?
Sorry, I know the development is painfully slow lately... I'll try to release new version once I get some reasonable amount of free time...

Vogel

  • Guest
how to fix this error? delete cache file niether plugin resetting doesn't work :/ any suggestions? still:

Code: [Select]
[DEBUG] Submission failed: bad authorization.

Dotpitch

  • Posts: 2871
how to fix this error? bad authorization
Either your username/password combination was rejected, or Last.fm servers are down.

Vogel

  • Guest
nope. but when i changed my  password in last.fm - it worked. strange...

Vogel

  • Guest
i changed my password and it started to work. and now... for some reason i have this error another time. don't get it why. and then i change my password and... it work! and after while i've got this error again. :/

raina

  • Posts: 1163
I'm thinking coincidence.. What if the next time the error happens, you wait a little while (about as long as it takes to change your password at least) and give it another shot? Sounds like it's the server having some problems and being unavailable.

Vogel

  • Guest
i think when I open scrobbler config (after i changed my password) it change my stored password. now it works excellent. so... there must be some bug.

amit

  • Posts: 723
The plugin doesn't work for me lately also. Moreover xmplay crashes when the cache file gets too bloated.
I am waiting patiently for the fix...

raina

  • Posts: 1163
@amit, for now, accept the loss of the cache, delete it and it'll work again for quite some time (actual time may vary case by case ;) ).

Vogel

  • Guest
i want to say a F-word :/ plgin works wen he wants :/ sometime do somthing with stored password. please dont made me to leave xmplay 4 somthing like winamp or foobar :/ heeeeeeeeeeeelp

Zarggg

  • Posts: 1242
Delete all relevant files (cache and plugin) and reinstall. I have had an issue before where the actual plugin file was corrupted somehow and reinstalling fixed it.

Chuckles

  • Guest
Any plans to add dynamic playlist creation (based on lastfm) to this plugin?

Zarggg

  • Posts: 1242
Not sure what you mean, Chuckles. This plugin is used to TRANSMIT data TO Last.fm, not RETRIEVE data FROM it.

RetroMod: Missed a word :(
« Last Edit: 29 Feb '08 - 17:17 by Zarggg »

Chuckles

  • Guest
Not sure what you mean, Chuckles. This plugin is used to TRANSMIT data TO Last.fm, RETRIEVE data FROM it.

Two other music players I've used (Amarok and Exaile) when in dynamic playlist mode will upon submission of a song retrieve song recommendations from lastfm and add the recommended song(s) to the playlist (assuming they are in your music library)

Its good for picking a song your in the mood for and with dynamic playlist turned on have similar songs be automatically generated for you based on lastfm recommendations.

Dotpitch

  • Posts: 2871
... when in dynamic playlist mode will upon submission of a song retrieve song recommendations from lastfm and add the recommended song(s) to the playlist (assuming they are in your music library).
Now that is nice :). But this plugin is only designed to send the data, as Zarggg said. Furthermore, with XMPlay it isn't possible for a plugin to read the library and manage the playlist (...yet).

Chuckles

  • Guest
... when in dynamic playlist mode will upon submission of a song retrieve song recommendations from lastfm and add the recommended song(s) to the playlist (assuming they are in your music library).
Now that is nice :). But this plugin is only designed to send the data, as Zarggg said. Furthermore, with XMPlay it isn't possible for a plugin to read the library and manage the playlist (...yet).

Thankyou, I know what the plugin does, just wanted to know if there were plans to extend its functionality.

I didn't know that plugins don't have access to the library and playlists, that information will save me starting to try and implement it myself

Dotpitch

  • Posts: 2871
I've got a problem with CUE sheets: when a track from the CUE is scrobbled and I restart XMPlay (it'll continue from the saved position), the timer will be set to a negative value ("Submitting in -27 seconds..."). Now for regular files that's not a real problem, because xmp-scrobbler detects a file change and resets the timer. But with CUEs, it doesn't respond to title changes and keeps waiting for the timer, missing every CUE track that follows.

Apart from that, xmp-scrobbler still works very good and it's coming close to its first second anniversary ;D.

Edit:  :-X woops, you're right raina.
« Last Edit: 18 Mar '08 - 15:32 by Dotpitch »

raina

  • Posts: 1163
Hmm.. Did I close XMPlay when I last got the negative seconds thing when listening to a CUEd MP3, I don't think so. Well, I don't remember to be honest. Just seconding there's a little problem which hopefully gets fixed eventually. Loving xmp-scrobbler, for almost two years already. ;)

Zarggg

  • Posts: 1242
I wonder if he programmed the plugin to account for file changes, rather than (properly) title changes.

Then again, if he did it based on title changes, that might cause streams to be accidentally submitted, which is a no-no.

raina

  • Posts: 1163
Dunno if this an XMPlay, xmp-scrobbler or malformed cue sheet issue but I get this in the xmp-scrobbler log:
Code: [Select]
2008-03-26 14:17:52 [INFO] CUE sheet found, current file contains 7 track(s)
2008-03-26 14:17:52 [INFO] Current track: Intro (Influence excerpt)
1:17 Memory part 1
3:44 Influence
8:08 Far Awaiting
15:14 I am a Fuse
17:22 Memory part 2
21:05 Memory part 3
 - tle Memory Drawer (Memory Drawer)
2008-03-26 14:17:52 [INFO] Submitting in 32 seconds...

if the PERFORMER line is missing from each TRACK, i.e. looks like this:
Code: [Select]
PERFORMER "Paracat"
TITLE "Memory Drawer"
FILE "Paracat - Memory Drawer.mp3" MP3
  TRACK 01 AUDIO
    TITLE "Intro (Influence excerpt)"
    INDEX 01 00:00:00
  TRACK 01 AUDIO
    TITLE "Memory part 1"
    INDEX 01 01:17:00
  TRACK 03 AUDIO
    TITLE "Influence"
    INDEX 01 03:44:00
  TRACK 04 AUDIO
    TITLE "Far Awaiting"
    INDEX 01 08:08:00
  TRACK 05 AUDIO
    TITLE "I am a Fuse"
    INDEX 01 15:14:00
  TRACK 06 AUDIO
    TITLE "Memory part 2"
    INDEX 01 17:22:00
  TRACK 07 AUDIO
    TITLE "Memory part 3"
    INDEX 01 21:05:00

XMPlay also scrobbles the whole thing as a single song title, all the titles and indexes. So, I guess I want to ask if this should be corrected at XMPlay/xmp-scrobbler's end (actually I think XMPlay was still displaying the titles OK) or is the PERFORMER required per track in a valid cue sheet? I was just trying to avoid needless repetition because the EP is by a single artist, Paracat, and I thought the album PERFORMER would cover all the tracks. The thing started scrobbling ok after re-added the PERFORMER lines and threw in some FLAGS DCP lines for good measure.