XMPlay Last.fm/Audioscrobbler plugin (xmp-scrobbler)

Started by yagood,

saga

Given that Xander hasn't been around for a while, maybe it's worth just starting from the 0.9.6 sourcecode.
I tried finding the differences between the two versions to make this potentially easier:
Problem with unicode strings being truncated: http://www.un4seen.com/forum/?topic=5398.msg80839#msg80839 (with possible explanation of the fix here: http://www.un4seen.com/forum/?topic=5398.msg78376#msg78376)
Problem with cue sheets? http://www.un4seen.com/forum/?topic=5398.msg81121#msg81121
Delayed fetch limit has been changed: http://www.un4seen.com/forum/?topic=5398.msg78536#msg78536

Or maybe dukzcry could be fair enough and share the code for his modifications.

yaurthek

Hi,

I too noticed the XMPlay scrobbling plugin now crashes with the recent website update, hence why I came seeking news here.

I did not closely follow the development of the plugin, but I've been using it for more than a year now. At the time, I backed up the source code that was once posted on this forum, and hosted it on a github repo so that it would not disappear if the original poster would remove it.
These source seem to include the 0.9.7 modifications (or at least, some).

I just noticed dukzcry has apparently forked this repo and worked a bit on the source (not for a while though), so I updated it.

Anyway, if anyone is interested, my original clone of the source found on this forum is here : https://github.com/yaurthek/xmp-scrobbler
And the re-forked repo by dukzcry is here : https://github.com/repos-holder/xmp-scrobbler

I hope this can help people at Last.fm solve the problem... I'm already starting to really miss scrobbling with XMPlay!

TaZ

Hi

I make no promises, but I'll (in the coming days/weeks?) try to look at the cause of the crash and try providing a new build, it will be based on the 0.9.7 https://github.com/yaurthek/xmp-scrobbler version

T`aZ

Good news everyone...

I had a bit of time this weekend, and i present you the quick and dirty xmp-scrobbler 0.9.8.0 !

xmp-scrobbler-0.9.8.0-bin.7z https://docs.zoho.com/file/kue3ke82c64a540e645a4890c9178e3604bd8
 
xmp-scrobbler-0.9.8.0.7z https://docs.zoho.com/file/kue3k6cf78a7d213d47388450e5ae1882c36d
 

What has changed :
- Fix the crash at handshake.
- minor code improvements.
- Added visual studio 2013 solution file.

T`aZ

Hmm, i forgot to mention, there is a new requirement: you need microsoft visual studio c++ runtime 2013 (x86) installed else the .dll cannot be loaded.

If it still doesn't work i'll need more information, what os version are you using ? (xp?)


main

Hi,

I've instaled the visual C++... The plugin is visible now, along with all the new features in the configuration... But now the player crashes instantlly after hiting play with the plugin enabled :( At least that happens on windows10 which I use...

HELP!

Cheers for the prompt reply!

raina

He-hey, it's working. Cheers, T`aZ!

For a while it was just caching and caching but enabling debug mode revealed "bad authorization", so I guess I fumbled the password.
Windows 10 here as well.

EDIT: Oh yeah, the log timestamps are missing leading zeroes making them visually fluctuate, plus the time part in "2015-9-14 10:27:9" looks super weird.

EDIT2: XMPlay thinks xmp-scrobbler++ 0.1 is older than xmp-scrobbler 0.9.6 and offers an update.

T`aZ

Thanks for the feedback, I know some issues needs to be fixed (date, version number) and that version is probably less stable than the old one, because of new compiler being less tolerant. A new version will probably come in some days trying to correct that :)

saga

Yup, the crash is definitely still there for me as well. Right when starting playback of a track, which indicates that this version is definitely still missing the delayed info fetch option (I think it was also part of the options dialog?).
By the way, the original code was released under the GPL, so the code package should definitely come with a GPL license notice as well, even if dukzcry removed it.

EDIT: Strangely the crash sometimes doesn't happen instantly. I'll try to compile it myself and see what I can find.

saga

Okay, I was able to find at least one bug so far which was probably due to a broken entry in the submission cache with a completely bogus submission date (check return value of gmtime_s in line 205 of scrobbler.cpp is non-zero). Let's see if there are any other crashes happening...
Temporary download: http://sagagames.de/stuff/xmp-scrobbler.7z (requires the Visual Studio 2010 redistributable runtime)

raina

Ah, had the crash happen on my home machine, which is not that different from the office one. Saga's version seems to fix that.

T`aZ

Hi all,

xmp-scrobbler-0.9.8.1-bin.7z https://docs.zoho.com/file/1zhe7e0e9b056200c472dbea9a86b658a652f
 
xmp-scrobbler-0.9.8.1.7z https://docs.zoho.com/file/1zhe7a06e72cd3c2341eeae8ace30db444df3

Brief changelog:
- Added (back?) Gpl license
- Better error handling, should not crash anymore on bad input cache file*
- Renamed to xmp-scrobbler (without the ++)
- Minor code refactoring
- Fix timestamp format bug

* crash was due to old time_t being 32bits (so old cached track file is no more compatible).


Let me know if you still have problems.

Etocaus

Hello. I am running Windows XP, Visual Studio C++ Runtime 2013 (x86) installed. Problem is that the plugin won't show, so it cannot be added and configured.

Regards.


main

main

Quote from: mainThe plugin works just fine now.

Cheers T'az!

Under both W7 and W10 with visual studio c++ runtime 2013 installed, if anybody wonders.

yaurthek

Hello everyone,

I've been working on a completely new open source scrobbling plugin since Last.fm broke xmp-scrobbler.

I have an internal version working for a few weeks now, and I think it's time for a public release!

You can find the project's main page here, with a README and a feature list: https://github.com/mlaily/xmp-sharp-scrobbler

Please note this plugin is written in C++ and C#, and compiled on Visual Studio 2015, so the requirements are a bit more than usual.
If it's not already the case, you will have to install the MSVC++ 2015 redistributables, and the .Net Framework 4.6.
This means the plugin won't work on XP or lower.

That said, you can download a compiled version here : https://github.com/mlaily/xmp-sharp-scrobbler/releases/ (You will also find a copy of the aforementioned required dependencies)

Feedbacks are welcome!


T`aZ

hi yaurthek, this is good news! I was going to implement in the coming weeks an updated version using the new last.fm rest api. but it seems you already did that ^^. I'll try your plugin in the coming days.

raina

Good hustle, everyone. This new one doesn't seem to be working with cue sheets yet, is it?