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

Fentiger

  • Posts: 14
Ahha problem solved! :D Thankyou!

I ended up deleting my saved settings and started again.

Although the first time I tried playing a song Xmplay crashed at the point it was submitting the data to Last FM...this happens rarely anyway

Many thanks for your help in solving this. Cheers!

raina

  • Posts: 1163
Although the first time I tried playing a song Xmplay crashed at the point it was submitting the data to Last FM...this happens rarely anyway

That's usually a sign of xmp-scrobbler cache corruption (a far more frequent problem than your original one), which can be solved by deleting the cache file.

saga

  • Posts: 2179
Note that this doesn't help with all files, though. I experience crashes everytime I try to play certain MIDI files from Duke Nukem 3D, for example.

Zarggg

  • Posts: 1242
If you're trying to scrobble MIDI files, did you create data in the XMPlay Library?

saga

  • Posts: 2179
Yes I did. However the MIDI files themselves have also metadata information, which the scrobbler plugin might grab instead.

Dotpitch

  • Posts: 2871
Yes I did. However the MIDI files themselves have also metadata information, which the scrobbler plugin might grab instead.
It takes the original tags indeed, because overridden tags are below the file tags in the Info window.

Zarggg

  • Posts: 1242
The plugin shouldn't be able to see the MIDI metadata at all.

Stas_Miasnikou

  • Guest
Earlier today XMPlay suddenly started crashing with xmp-scrobbler enabled. Here's last lines from the log:
Code: [Select]
2009-09-14 17:30:28 [INFO] Hello, this is xmp-scrobbler 0.8
2009-09-14 17:30:28 [DEBUG] GetVersion() = 170393861 (5.1, build 2600)
2009-09-14 17:30:28 [DEBUG] curl_version() = libcurl/7.16.2 OpenSSL/0.9.8a zlib/1.2.3
2009-09-14 17:30:55 [DEBUG] DSP_NewTrack (OPEN)
2009-09-14 17:30:55 [DEBUG] XMP_ScrobInit() started
2009-09-14 17:30:55 [DEBUG] CacheManager::Load()
2009-09-14 17:30:55 [DEBUG] Resizing cache array - new length: 28
2009-09-14 17:30:55 [INFO] Number of entries in the cache: 29
2009-09-14 17:30:55 [DEBUG] Scrobbler::init() - cache loaded, doing handshake...
2009-09-14 17:30:55 [DEBUG] XMP_ScrobInit() finished
2009-09-14 17:30:55 [DEBUG] DSP_SetFormat( 1, 96000, 2 )
2009-09-14 17:30:56 [DEBUG] Handshaking: Client up to date.
2009-09-14 17:30:56 [DEBUG] http://post2.audioscrobbler.com:80/protocol_1.1
2009-09-14 17:30:56 [DEBUG] Submit interval set to 1 second(s).
2009-09-14 17:30:56 [DEBUG] Handshake successful.
2009-09-14 17:30:56 [INFO] Handshake with Last.fm server successful!
2009-09-14 17:31:04 [DEBUG] XMP_FetchInfo -- start
2009-09-14 17:31:04 [WARNING] No valid MusicBrainz ID found, consider using MusicBrainz taggers to tag this file properly!
2009-09-14 17:31:04 [DEBUG] XMP_FetchInfo -- end
2009-09-14 17:31:04 [DEBUG] len = 174, diff = 8
2009-09-14 17:31:04 [INFO] Current track: Demons & Wizards - Crimson King (Touched by the Crimson King)
2009-09-14 17:31:04 [INFO] Submitting in 166 seconds...
2009-09-14 17:33:49 [DEBUG] DSP_Process -- sec <= 0
2009-09-14 17:33:49 [DEBUG] XMP_SubmitProc start
2009-09-14 17:33:49 [DEBUG] Resizing cache array - new length: 56
2009-09-14 17:33:49 [DEBUG] AddTrack (cache_size = 29, tracks_size = 56)
2009-09-14 17:33:49 [INFO] Track added to the cache for submission
2009-09-14 17:33:49 [INFO] Preparing to submit 10 track(s) from the cache
2009-09-14 17:35:12 ----
2009-09-14 17:35:12 [INFO] Hello, this is xmp-scrobbler 0.8
2009-09-14 17:35:12 [DEBUG] GetVersion() = 170393861 (5.1, build 2600)
2009-09-14 17:35:12 [DEBUG] curl_version() = libcurl/7.16.2 OpenSSL/0.9.8a zlib/1.2.3
2009-09-14 17:35:52 [DEBUG] DSP_NewTrack (OPEN)
2009-09-14 17:35:52 [DEBUG] XMP_ScrobInit() started
2009-09-14 17:35:52 [DEBUG] CacheManager::Load()
2009-09-14 17:35:52 [DEBUG] Resizing cache array - new length: 28
2009-09-14 17:35:52 [INFO] Number of entries in the cache: 29
2009-09-14 17:35:52 [DEBUG] Scrobbler::init() - cache loaded, doing handshake...
2009-09-14 17:35:52 [DEBUG] XMP_ScrobInit() finished
2009-09-14 17:39:11 ----
2009-09-14 17:39:11 [INFO] Hello, this is xmp-scrobbler 0.8
2009-09-14 17:39:11 [DEBUG] GetVersion() = 170393861 (5.1, build 2600)
2009-09-14 17:39:11 [DEBUG] curl_version() = libcurl/7.16.2 OpenSSL/0.9.8a zlib/1.2.3
2009-09-14 17:42:12 [DEBUG] DSP_SetFormat( 1, 96000, 2 )
2009-09-14 17:42:21 [DEBUG] XMP_FetchInfo -- start
2009-09-14 17:42:21 [WARNING] No valid MusicBrainz ID found, consider using MusicBrainz taggers to tag this file properly!
2009-09-14 17:42:21 [DEBUG] XMP_FetchInfo -- end
2009-09-14 17:42:21 [DEBUG] len = 64, diff = 8
2009-09-14 17:42:21 [INFO] Current track: Ronan Hardiman - Gypsy ()
2009-09-14 17:42:21 [INFO] Submitting in 56 seconds...
2009-09-14 17:43:16 [DEBUG] DSP_Process -- sec <= 0
2009-09-14 17:43:16 [DEBUG] XMP_SubmitProc start
After disabling xmp-scrobbler all is OK.

Dotpitch

  • Posts: 2871
Earlier today XMPlay suddenly started crashing with xmp-scrobbler enabled. Here's last lines from the log.
Your cache is corrupted, remove xmp-scrobbler.cache and everything should work again. This problem will appear every time you get over 50 tracks in the cache.

Handyman

  • Guest
Is there any way to make the cache to save more than 50 data without making XMP crash???Anyone??

Dotpitch

  • Posts: 2871
Is there any way to make the cache to save more than 50 data without making XMP crash? Anyone?
No.

peewack

  • Posts: 8
Hey there, I have the same problem, the cache corrupts easily, and if I delete it, xmplay crashs upon the first scrobble. Maybe is Windows7's fault.

Anyway, can you reupload the previous versions of the plugin? I didn't remember any problem with the 0.5 or 0.6.

Best regards

Handyman

  • Guest
Seems after using windows 7 that problem solved.For more 'stability' i run it under vista compatibility mode.

GISGeek

  • Guest
Windows XP sp3
XMPlay 3.4.2.1
xmp-scrobbler 0.8

I have entered my last.fm user and pwd in options-->DSP-->xmp-scrobbler-->config and checked the Enable box in the plugin config page and nothing happens.  No streaming music or anything...what am i missing?  I assumed that i add the http://www.last.fm/user/<username> to the playlist and it would stream...did I miss something?

raina

  • Posts: 1163
No streaming music or anything...what am i missing?
xmp-scrobbler only does the Audioscrobbler part of Last.fm and that is submitting the meta data (artist, song title and album) of your listened files to your Last.fm profile.

Xander

  • Posts: 32
Hi, I've compiled new binaries of the scrobbler plugin.

These are lighter than version 0.8 (I took away some things in the cURL library which were not useful in this context) and should handle correctly the cache file, there shouldn't be a crash when there are around 50 cached tracks.

The recommended binary has IPv6 support enabled too, but it won't work in Windows versions prior to XP. (1)

The alternative binary doesn't have IPv6 support and can be used in Windows versions prior to XP.

If the recommended binary doesn't work in your machine, even though you're in XP+ use the alternative one. The recommended one requires a SSE processor (Pentium III or later), the alternative should work in any processor. Both versions were tested in Me (just the alternative one), XP, Vista and 7.


I'm planning on writing a new version of the scrobbler plugin, compatible with the new protocol (e.g. "Now playing" notifications, seeking allowed, ...) using the sockets API directly instead of the cURL library; but it'll take some time.

Anything regarding these binaries post it here, I'll read it and I'll fix any problem there may be.

Kind regards.

EDIT: The recommended file is in the first post. Sorry for the inconvenience.

(1): To enable IPv6 support the function getaddrinfo() was needed and Windows natively did not have it until XP.
« Last Edit: 20 Mar '10 - 11:13 by Xander »

saga

  • Posts: 2179
Hi, this sounds very promising.
Quote
e.g. "Now playing" notifications
Can you explain what that means?
Quote
seeking allowed, ...)
I hope that will be an option, because it's a nice way to prevent tracks from being listed on last.fm.

Xander

  • Posts: 32
Quote
e.g. "Now playing" notifications
Can you explain what that means?

Yes of course, it's one part of the new protocol (1.2+) which allows the player to tell Last.FM which music you're listening to right now (before "scrobbling" it, just to be shown in the webpage).

From the protocol spec: "The Now-Playing notification is a lightweight mechanism for notifying Last.fm that a track has started playing. This is used for realtime display of a user's currently playing track, and does not affect a user's musical profile."

Quote
seeking allowed, ...)
I hope that will be an option, because it's a nice way to prevent tracks from being listed on last.fm.

Yes, the current plugin was written following the 1.1 version of the procotol, which didn't allow seeking at all. From 1.2 on, the rules changed regarding when to scrobble a song or not and you're allowed to do that.

I'm planning to follow the current specification, so seeking would be allowed. Anyway, I'll add an option to let you choose if you prefer not to be allowed to seek in a song.
« Last Edit: 7 Mar '10 - 01:44 by Xander »

Cris

  • Posts: 232
The config window is not appearing in either Recommended or Alternative version.
Submission appears to be working OK though (probably with the settings from the previous version).

XMPlay 3.5.0.1
Windows 7 Pro x64

raina

  • Posts: 1163
Hey, nice to see xmp-scrobbler progress again! Also missing the config with the recommended version on

XMPlay 3.5.1.6
Windows 7 Ultimate x86

Xander

  • Posts: 32
The config window is not appearing in either Recommended or Alternative version.

Sorry, my fault, I didn't include that dialog in the last builds. Here you have updated binaries, everything should work now.

Hey, nice to see xmp-scrobbler progress again!

:) Well, they're just recompiles, few code was changed really; but any problem there may be I think I should be able to fix it.

EDIT: I recommend the use of the binaries in this post, they allow the use of library tags in the first place. If you wish to use these ones and can't decompress them use the links in this post instead.

2nd EDIT: The current version of the plugin can be found in the first post of this thread, I recommend the use of that one instead of these.
« Last Edit: 20 Mar '10 - 11:16 by Xander »

Pike84

  • Posts: 1398
I can't seem to be able to open these archives; both XP's Windows Explorer and WinRAR give error messages (WinRAR shows the contents, but can't decompress).

By the way, uh... Who are you? :D
These are your first three posts here.. did I miss something?

Xander

  • Posts: 32
I can't seem to be able to open these archives; both XP's Windows Explorer and WinRAR give error messages (WinRAR shows the contents, but can't decompress).

Strange thing... Try these ones instead (this time I used Windows 7 explorer to create them), if still you can't open them tell me and will upload them in a different format.

By the way, uh... Who are you? :D
These are your first three posts here.. did I miss something?

Sorry, where are my manners...  :-[

My name is Alexander De Sousa Macedo (Alex or Xander for short), I've been using XMPlay for some years now (my first contact was with a Windows Millennium back in the day, I used to (try to) do tracker music with Impulse Tracker and I guess that's why I came across XMPlay). Never left since then really (only sometimes when in a Linux environment because of the Wine layer). I've never registered in the forum I guess because it wasn't necessary to browse through it and didn't have much to say...  :-\

Yesterday I experienced another crash because of the cache file loader, so I decided to recompile the plugin and fix that and here I am now! :) When I saw it uses cURL I decided to take some things away when building the library to make the plugin lighter. At the same time I decided it's time to have an updated plugin so I decided to write a new one using the sockets API directly (but I still have to learn about the plugins system and all, so the plugin may not be ready in the near future).

And... I think there's nothing more to say, if you want to know something about me just ask :).

NOTE: I've realized that there may be people who need SSL support for proxies, it's not enabled in those builds, I'll try to add a SSL enabled version tomorrow.

Pike84

  • Posts: 1398
I don't know what the problem was/is, but it turns out the file got corrupted in downloading with Opera, because I got a good one with Firefox. Strange, I've never had such a problem before with Opera ???

Anyway, the plugin seems to be working fine :)

Dotpitch

  • Posts: 2871
I don't know what the problem was/is, but it turns out the file got corrupted in downloading with Opera, because I got a good one with Firefox. Strange, I've never had such a problem before with Opera
I've got the same problem, you've got 10.50 as well I guess? Even stranger, with IE8 it's corrupt as well, but it's perfect with FF (thanks for the tip ;)).
Hi, I've compiled new binaries of the scrobbler plugin.
Awesome! Seems to work just fine. Thanks for doing this! :)
Well, they're just recompiles, few code was changed really; but any problem there may be I think I should be able to fix it.
One thing that's been bothering me is the tag handling. xmp-scrobbler, looks for ID3v2, ID3v1, WMA and then for other tags. Like XMPlay, it should be looking for overridden tags (the 'Library' data block) first, then APE, ID3v2, ID3v1, WMA and other (Ogg, FLAC, etc.). I don't use overridden tags myself, but I do think they should be scrobblable (is that even a word? ;D). Could you squeeze that in there?

[edit]
Opera, Opera identifying as FF and IE8 produce the exact same file, FF a larger one. WinZip marks the smaller file as corrupt, but gzip can decompress xmp-scrobbler.dll from it without problems. The lighttpd server this forum is running on sends the zip inside a gzip stream (same to all browsers), but it looks like only FF actually decompresses that stream. So it's on the browser side, it has nothing to do with the archives Xander uploaded.
[/edit]
« Last Edit: 7 Mar '10 - 16:04 by Dotpitch »