PDA

View Full Version : SlimScrobbler CVS works!



Dave Dewey
2005-04-12, 06:29
Thanks to Ian and Stewart!

The SlimScrobbler plugin for 6.0.1-1 is working perfectly in my setup
(Fedora Core 3).

The new code in CVS on SourceForge is the working version.

- Download from CVS
- Install it
- On the 'Server Settings/Plugins' page make sure that 'AudioScrobbler
Submitter' is checked.
- There is a new Audioscrobbler prefs pane on that same page; enter your
Audioscrobbler userid/password, turn on AutoSubmit. Click 'Change.'

That's it! Slimserver now starts up without any Slimscrobbler errors, and
the plugin works great.

Thanks again guys, I'm ordering a new SB2 today now that this works...

dave

kdf
2005-04-12, 09:17
Quoting Dave Dewey <ddewey (AT) cyberthugs (DOT) com>:

>
> Thanks to Ian and Stewart!
>
> The SlimScrobbler plugin for 6.0.1-1 is working perfectly in my setup
> (Fedora Core 3).
>
> The new code in CVS on SourceForge is the working version.
>
> - Download from CVS
> - Install it
> - On the 'Server Settings/Plugins' page make sure that 'AudioScrobbler
> Submitter' is checked.
> - There is a new Audioscrobbler prefs pane on that same page; enter your
> Audioscrobbler userid/password, turn on AutoSubmit. Click 'Change.'
>
> That's it! Slimserver now starts up without any Slimscrobbler errors, and
> the plugin works great.

fyi...since I recall someone mentioning not being able to get debugging working:

There is a pref being used in the plugin, "scrobbler-debug" which has no UI to
change it. You would need to manually set this to 1 in your prefs file and use
d_cli to get debugging output (according to the comments code). However,
looking through the rest of the code, simply changing the scrobbler-debug pref
should do it with or without d_cli or any other debug flags. There are a few
prefs without a UI, but I assume those will come along before release.

-kdf

bklaas
2005-04-12, 10:07
That's just too serendipitous for words. I've been chomping at the bit
for weeks to install 6.x on my FC3 machine, but have been holding out
for SlimScrobbler support. Yesterday I finally broke down and decided
that I'd install 6.x and just live without my scrobbler addiction until
support came. And now...here it is!

thanks for the plugin work, intrepid slimserver community!

#!/ben

for the record-- also works great for me. love the integration of
user/pass into the web front-end!

Dave Dewey wrote:
> Thanks to Ian and Stewart!
>
> The SlimScrobbler plugin for 6.0.1-1 is working perfectly in my setup
> (Fedora Core 3).
>
> The new code in CVS on SourceForge is the working version.
>
> - Download from CVS
> - Install it
> - On the 'Server Settings/Plugins' page make sure that 'AudioScrobbler
> Submitter' is checked.
> - There is a new Audioscrobbler prefs pane on that same page; enter your
> Audioscrobbler userid/password, turn on AutoSubmit. Click 'Change.'
>
> That's it! Slimserver now starts up without any Slimscrobbler errors, and
> the plugin works great.
>
> Thanks again guys, I'm ordering a new SB2 today now that this works...
>
> dave
>

kdf
2005-04-12, 13:01
Quoting Ben Klaas <bklaas (AT) occamnetworks (DOT) com>:

> That's just too serendipitous for words. I've been chomping at the bit
> for weeks to install 6.x on my FC3 machine, but have been holding out
> for SlimScrobbler support. Yesterday I finally broke down and decided
> that I'd install 6.x and just live without my scrobbler addiction until
> support came. And now...here it is!

worth noting is this this doesn't seem to support proxies. I've attached a diff
to add it in. seems to have worked on my setup.

The plugin also uses its own HTTP GET methods,
instead of slimserver's increasingly optimised non-blocking code. This means
that is the submission server gets slow, you may suffer dropouts and other
performance issues. Hopefully the authors will consider using the built-in
slimserver code at some point.

-kdf

bklaas
2005-04-12, 15:43
nice point kdf (as always). My initial success at using the new
slimscrobbler will sour when the audioscrobbler server gets slow, which
in my experience is about every other day. Don't get me wrong, I
looooove having my track history uploaded to audioscrobbler, but a
squeezebox with dropouts makes me a sad panda. In summary, "optimized
non-blocking code" = GOOD.

Of course, this will all smooth out when Google catches wind of
audioscrobbler and slurps them up like the all-powerful ameba they have
become, then provides a pipe the size of Texas to power the thing ;)

kdf wrote:
> Quoting Ben Klaas <bklaas (AT) occamnetworks (DOT) com>:
>
>
>>That's just too serendipitous for words. I've been chomping at the bit
>>for weeks to install 6.x on my FC3 machine, but have been holding out
>>for SlimScrobbler support. Yesterday I finally broke down and decided
>>that I'd install 6.x and just live without my scrobbler addiction until
>>support came. And now...here it is!
>
>
> worth noting is this this doesn't seem to support proxies. I've attached a diff
> to add it in. seems to have worked on my setup.
>
> The plugin also uses its own HTTP GET methods,
> instead of slimserver's increasingly optimised non-blocking code. This means
> that is the submission server gets slow, you may suffer dropouts and other
> performance issues. Hopefully the authors will consider using the built-in
> slimserver code at some point.
>
> -kdf
>
>
> ------------------------------------------------------------------------
>
>

Bart
2005-04-13, 10:20
The new code in CVS on SourceForge is the working version.
How do we download it? I have not got the hang of Subversion. I managed to download a Scrobbler.pm from sourceforge. I added my $SCROBBLE_USERID_DEFAULT and $SCROBBLE_PASSWORD_DEFAULT and put it into the Plugins directory, started Slimserver with --d_cli, but slimscrobbler doesn't run.

bklaas
2005-04-13, 10:30
http://sourceforge.net/cvs/?group_id=105780

this lays out the procedure pretty well (provided you are on a unix-like OS)

#!/ben

for the record-- Subversion and CVS are different technologies.

Bart wrote:
> Dave Dewey Wrote:
>
>>The new code in CVS on SourceForge is the working version.
>
> How do we download it? I have not got the hang of Subversion. I
> managed to download a Scrobbler.pm from sourceforge. I added my
> $SCROBBLE_USERID_DEFAULT and $SCROBBLE_PASSWORD_DEFAULT and put it into
> the Plugins directory, started Slimserver with --d_cli, but
> slimscrobbler doesn't run.
>
>

kdf
2005-04-13, 10:32
Quoting Bart <Bart.1nftfn (AT) no-mx (DOT) forums.slimdevices.com>:

>
> Dave Dewey Wrote:
> > The new code in CVS on SourceForge is the working version.
> How do we download it? I have not got the hang of Subversion. I
> managed to download a Scrobbler.pm from sourceforge. I added my
> $SCROBBLE_USERID_DEFAULT and $SCROBBLE_PASSWORD_DEFAULT and put it into
> the Plugins directory, started Slimserver with --d_cli, but
> slimscrobbler doesn't run.

http://sourceforge.net/cvs/?group_id=105780

you need a lot more than just the Scrobbler.pm, d_cli appears to have nothing to
do with the plugin any more (at least, I haven't seen it in the code anywhere)
You have to manually edit Scrobbler.pm as I have described earlier in order to
get teh debugging output.

-kdf

Dave Dewey
2005-04-13, 14:19
Quoting Bart (Bart.1nftfn (AT) no-mx (DOT) forums.slimdevices.com):

>
> Dave Dewey Wrote:
> > The new code in CVS on SourceForge is the working version.
> How do we download it? I have not got the hang of Subversion. I
> managed to download a Scrobbler.pm from sourceforge. I added my
> $SCROBBLE_USERID_DEFAULT and $SCROBBLE_PASSWORD_DEFAULT and put it into
> the Plugins directory, started Slimserver with --d_cli, but

That's the same thing I did, and it's a mistake.

You no longer have to touch Scrobbler.pm. Your Audioscrobbler userid/passwd
are entered in the Web interface now, much easier and more error-proof.

Go to Server Settings/Plugins, make sure the AudioScrobblerSubmitter is
enabled by default, and then scroll down a bit to the Audioscrobbler prefs
pane.

dave

Bart
2005-04-14, 03:54
Working now - thanks for your help.

Allan Hise
2005-04-16, 11:59
I'm on an Unix like OS.
What should I use for "modulename" in
"cvs -z3 -d:pserver:anonymous (AT) cvs (DOT) sourceforge.net:/cvsroot/slimscrobbler co -P modulename"
???

Allan

On Wed, 13 Apr 2005, Ben Klaas wrote:

> http://sourceforge.net/cvs/?group_id=105780
>
> this lays out the procedure pretty well (provided you are on a unix-like OS)
>
> #!/ben
>
> for the record-- Subversion and CVS are different technologies.
>
> Bart wrote:
> > Dave Dewey Wrote:
> >
> >>The new code in CVS on SourceForge is the working version.
> >
> > How do we download it? I have not got the hang of Subversion. I
> > managed to download a Scrobbler.pm from sourceforge. I added my
> > $SCROBBLE_USERID_DEFAULT and $SCROBBLE_PASSWORD_DEFAULT and put it into
> > the Plugins directory, started Slimserver with --d_cli, but
> > slimscrobbler doesn't run.
> >
> >
>

kdf
2005-04-16, 12:44
Quoting Allan Hise <allan (AT) hise (DOT) org>:

>
> I'm on an Unix like OS.
> What should I use for "modulename" in
> "cvs -z3 -d:pserver:anonymous (AT) cvs (DOT) sourceforge.net:/cvsroot/slimscrobbler co
> -P modulename"
> ???

SlimScrobbler, I believe
-kdf

Allan Hise
2005-04-16, 12:47
On Sat, 16 Apr 2005, kdf wrote:

> Quoting Allan Hise <allan (AT) hise (DOT) org>:
>
> >
> > I'm on an Unix like OS.
> > What should I use for "modulename" in
> > "cvs -z3 -d:pserver:anonymous (AT) cvs (DOT) sourceforge.net:/cvsroot/slimscrobbler co
> > -P modulename"
> > ???
>
> SlimScrobbler, I believe

Thanks.
Those dadgum capital "S"es.

Allan Hise
2005-04-17, 03:13
On Sat, 16 Apr 2005, Allan Hise wrote:

> On Sat, 16 Apr 2005, kdf wrote:
>
> > Quoting Allan Hise <allan (AT) hise (DOT) org>:
> >
> > >
> > > I'm on an Unix like OS.
> > > What should I use for "modulename" in
> > > "cvs -z3 -d:pserver:anonymous (AT) cvs (DOT) sourceforge.net:/cvsroot/slimscrobbler co
> > > -P modulename"
> > > ???
> >
> > SlimScrobbler, I believe
>
> Thanks.
> Those dadgum capital "S"es.

Plugin installed, but no sight of it in the web interface.... Any tips on
how to debug this?

Allan

mherger
2005-04-17, 03:18
[..]
> Plugin installed, but no sight of it in the web interface.... Any tips on
> how to debug this?

Have you enabled it in the server's settings page?

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

Allan Hise
2005-04-17, 04:28
On Sun, 17 Apr 2005, Michael Herger wrote:

> [..]
> > Plugin installed, but no sight of it in the web interface.... Any tips on
> > how to debug this?
>
> Have you enabled it in the server's settings page?

It doesn't even show up there...

mherger
2005-04-17, 04:59
> On Sun, 17 Apr 2005, Michael Herger wrote:
>
>> [..]
>> > Plugin installed, but no sight of it in the web interface.... Any
>> tips on
>> > how to debug this?
>>
>> Have you enabled it in the server's settings page?
>
> It doesn't even show up there...

Just to be sure.... have you restarted the server after installing the
plugin?

Please try running slimserver.pl with the -d_plugins parameter and send
the output

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

Allan Hise
2005-04-17, 05:22
On Sun, 17 Apr 2005, Michael Herger wrote:

> > On Sun, 17 Apr 2005, Michael Herger wrote:
> >
> >> [..]
> >> > Plugin installed, but no sight of it in the web interface.... Any
> >> tips on
> >> > how to debug this?
> >>
> >> Have you enabled it in the server's settings page?
> >
> > It doesn't even show up there...
>
> Just to be sure.... have you restarted the server after installing the
> plugin?
>
> Please try running slimserver.pl with the -d_plugins parameter and send
> the output

OK. I am on OS X. If I put the plugin in ~/Library/SlimDevices/Plugins
(where I put other stuff so it isn't overwritten by server updates), I
get:

***
anubis 4%
/Library/PreferencePanes/SlimServer.prefPane/Contents/server/slimserver.pl -d_plugins
2005-04-17 14:14:47.2511 Registering screensaver Now Playing (Jump back on wake.)
2005-04-17 14:14:53.1979 Requiring Plugins::Scrobbler plugin.
2005-04-17 14:14:53.2116 Can't require Plugins::Scrobbler for Plugins
menu: Can't locate Time/Stopwatch.pm in @INC (@INC contains: /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/SlimScrobbleSupport /Library/SlimDevices/ /Users/allan/Library/SlimDevices /Users/allan/Library/SlimDevices/Plugins/ /Library/SlimDevices/Plugins/ /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins /Library/PreferencePanes/SlimServer.prefPane/Contents/server /Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN /Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN/arch/5.8.1/darwin-thread-multi-2level /Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN/arch/5.8.1/darwin-thread-multi-2level/auto /Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN/arch/5.8/darwin-thread-multi-2level /Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN/arch/5.8/darwin-thread-multi-2level/auto /Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN/arch/darwin-thread-multi-2level /sw/lib/perl5 /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at
/Users/allan/Library/SlimDevices/Plugins/Scrobbler.pm line 36.
BEGIN failed--compilation aborted at
/Users/allan/Library/SlimDevices/Plugins/Scrobbler.pm line 36.
Compilation failed in require at (eval 56) line 3.
2005-04-17 14:14:53.2147 Requiring Plugins::Live365 plugin.
2005-04-17 14:14:53.3838 Requiring Plugins::Rescan plugin.
2005-04-17 14:14:53.3979 Requiring Plugins::iTunes plugin.
2005-04-17 14:14:53.4307 Requiring Plugins::Visualizer plugin.
2005-04-17 14:14:53.4474 Requiring Plugins::ShoutcastBrowser plugin.
2005-04-17 14:14:53.7590 Requiring Plugins::RssNews plugin.
2005-04-17 14:14:53.8166 Requiring Plugins::MusicMagic::Plugin plugin.
2005-04-17 14:14:53.8485 Requiring Plugins::DateTime::Plugin plugin.
2005-04-17 14:14:53.8587 Requiring Plugins::RadioIO plugin.
2005-04-17 14:14:53.9360 Requiring Plugins::WebLogger::Plugin plugin.
2005-04-17 14:14:54.1512 Requiring Plugins::SlimTris plugin.
2005-04-17 14:14:54.1661 Requiring Plugins::Picks plugin.
2005-04-17 14:14:54.1767 Requiring Plugins::SavePlaylist plugin.
2005-04-17 14:14:54.1908 Adding Picks to menu: RADIO
2005-04-17 14:14:54.1948 Registering screensaver
PLUGIN_SCREENSAVER_DATETIME

***

If I put the plugin in /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/
I get:

anubis 5%
/Library/PreferencePanes/SlimServer.prefPane/Contents/server/slimserver.pl -d_plugins
2005-04-17 14:15:27.2634 Registering screensaver Now Playing (Jump back on wake.)
2005-04-17 14:15:33.2498 Requiring Plugins::Scrobbler plugin.
v-strings are deprecated at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/SlimScrobbleSupport/Scrobbler/BackgroundHTTP.pm line 32.
v-strings are deprecated at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/SlimScrobbleSupport/Scrobbler/Session.pm line 33, <DATA> line 64.
v-strings are deprecated at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/SlimScrobbleSupport/Scrobbler/Session.pm line 345, <DATA> line 64.
v-strings are deprecated at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/SlimScrobbleSupport/Scrobbler/Track.pm line 44, <DATA> line 64.
v-strings are deprecated at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/SlimScrobbleSupport/Scrobbler/Track.pm line 337, <DATA> line 64.
v-strings are deprecated at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/Scrobbler.pm line 47, <DATA> line 64.
2005-04-17 14:15:33.9885 Requiring Plugins::RadioIO plugin.
2005-04-17 14:15:34.0077 Requiring Plugins::SlimTris plugin.
2005-04-17 14:15:34.0227 Requiring Plugins::ShoutcastBrowser plugin.
2005-04-17 14:15:34.1774 Requiring Plugins::MusicMagic::Plugin plugin.
2005-04-17 14:15:34.2092 Requiring Plugins::WebLogger::Plugin plugin.
2005-04-17 14:15:34.4129 Requiring Plugins::iTunes plugin.
2005-04-17 14:15:34.6291 Requiring Plugins::DateTime::Plugin plugin.
2005-04-17 14:15:34.6401 Requiring Plugins::Live365 plugin.
2005-04-17 14:15:34.8218 Requiring Plugins::Visualizer plugin.
2005-04-17 14:15:34.8339 Requiring Plugins::Picks plugin.
2005-04-17 14:15:34.8445 Requiring Plugins::Rescan plugin.
2005-04-17 14:15:34.8562 Requiring Plugins::RssNews plugin.
2005-04-17 14:15:34.9033 Requiring Plugins::SavePlaylist plugin.
2005-04-17 14:15:34.9203 Adding Picks to menu: RADIO
2005-04-17 14:15:34.9942 Registering screensaver
PLUGIN_SCREENSAVER_DATETIME
Use of uninitialized value in concatenation (.) or string at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/Scrobbler.pm line 421.
Use of uninitialized value in hash element at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/Scrobbler.pm line 423.
Use of uninitialized value in concatenation (.) or string at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/Scrobbler.pm line 425.
Use of uninitialized value in join or string at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/SlimScrobbleSupport/Digest/Perl/MD5.pm line 135.
Use of uninitialized value in hash element at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/Scrobbler.pm line 432.
Use of uninitialized value in hash element at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/Scrobbler.pm line 432.
Use of uninitialized value in hash element at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/Scrobbler.pm line 441.
Use of uninitialized value in numeric le (<=) at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Networking/Slimproto.pm line 523.
Use of uninitialized value in numeric le (<=) at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Networking/Slimproto.pm line 523.
2005-04-17 14:15:59.1884 Adding Picks to menu: RADIO
2005-04-17 14:15:59.1917 Registering screensaver
PLUGIN_SCREENSAVER_DATETIME

****

mherger
2005-04-17, 05:38
[..]
>> Please try running slimserver.pl with the -d_plugins parameter and send
>> the output
>
> OK. I am on OS X. If I put the plugin in ~/Library/SlimDevices/Plugins
> (where I put other stuff so it isn't overwritten by server updates), I
> get:

[..]
> 2005-04-17 14:14:53.1979 Requiring Plugins::Scrobbler plugin.
> 2005-04-17 14:14:53.2116 Can't require Plugins::Scrobbler for Plugins
> menu: Can't locate Time/Stopwatch.pm in @INC (@INC contains:

This means that the plugin needs the Time/Stopwatch.pm which isn't
installed on your system. Could you try to install it (should be available
from cpan.org) and run again?

[..]
> If I put the plugin in
> /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/
> I get:

Is it running this way?

[..]
> 2005-04-17 14:15:33.2498 Requiring Plugins::Scrobbler plugin.
> v-strings are deprecated at
> /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/SlimScrobbleSupport/Scrobbler/BackgroundHTTP.pm
> line 32.
> v-strings are deprecated at
> /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/SlimScrobbleSupport/Scrobbler/Session.pm
> line 33, <DATA> line 64.
> v-strings are deprecated at
> /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/SlimScrobbleSupport/Scrobbler/Session.pm
> line 345, <DATA> line 64.
> v-strings are deprecated at
> /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/SlimScrobbleSupport/Scrobbler/Track.pm
> line 44, <DATA> line 64.
> v-strings are deprecated at
> /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/SlimScrobbleSupport/Scrobbler/Track.pm
> line 337, <DATA> line 64.
> v-strings are deprecated at
> /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/Scrobbler.pm
> line 47, <DATA> line 64.
> 2005-04-17 14:15:33.9885 Requiring Plugins::RadioIO plugin.

Interesting - no complaint about that module. Theser are imho warnings
which shouldn't prevent the plugin from running.

Please give the Stopwatch.pm module a try.

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

Dan Sully
2005-04-17, 09:31
* Michael Herger shaped the electrons to say...

>>Plugin installed, but no sight of it in the web interface.... Any tips on
>>how to debug this?

Could this discussion please be moved to the plugins list/forum?

Thanks.

-D
--
<Nigel> Please refrain from fearing the reaper.