PDA

View Full Version : Artist's biography plugin



Craig, James (IT)
2005-02-04, 05:07
Michael,
This looks cool but;
A) The plugin crashes SlimServer if you don't have a client running.
Can't call method "master" on an undefined value at
/PerlApp/Slim/Player/Sync.pm line 386.

B) I don't seem to be getting any data from Allmusic
The page just says the artist's name and "information provided by
allmusic". Have tried a few different ones.
Are you using the configured proxy server because it takes a while to
generate the page.
Some errors caused here...
Use of uninitialized value in pattern match (m//) at C:/Program
Files/SlimServer/server/Plugins/Biography/Plugin.pm line
242.
Use of uninitialized value in regexp compilation at C:/Program
Files/SlimServer/server/Plugins/Biography/Plugin.pm line
248.

James

-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of John Gorst
Sent: 04 February 2005 11:46
To: discuss (AT) lists (DOT) slimdevices.com
Subject: [slim] Artist's biography plugin

Michael Herger wrote:
> The one thing I liked most about MusicMatch Jukebox: the integrated
> panel with information (biography, discography etc.) about the artist

> you're currently listening to. Now you can have this in your
> SlimServer's web interface using my biography plugin.
>
> For more information about the plugin and its installation see
> http://www.herger.net/slim/detail.php?nr=500
>
> The plugin requires a very recent 5.4.1 release!
> (http://www.slimdevices.com/downloads/nightly/latest/5.4.1/)

I am running 4/2/5 nightly on mandrake linux 10 and assume that the
necessary perl modules are installed (i dont know how to check!)

Doesnt work for me.

Plug appears in the plugin part of server settings.

However no bigliography appears in the 'home' bit of the web interface,
and it doesnt appear on the player interface. I ahve added
'bibliography' to the menu structure in the player settings with no
luck. It just adds a 'blank' menu option in the root menu of the player
interface - when I am on this the following error is produced at the
command line where I ran slimserver from:

2005-02-04 11:45:22.0406 Undefined string: BIOGRAPHY::PLUGIN
requested language: EN
failsafe language: EN

It then continues to repeat itself until I move away from that
slections.

Screen shots look very good though!

Cheers

mherger
2005-02-04, 05:23
> This looks cool but;
> A) The plugin crashes SlimServer if you don't have a client running.
> Can't call method "master" on an undefined value at
> /PerlApp/Slim/Player/Sync.pm line 386.

Thanks, I'll fix this!

> B) I don't seem to be getting any data from Allmusic
> The page just says the artist's name and "information provided by
> allmusic". Have tried a few different ones.

Who is it? I know this can happen if there's not even an artist close to
the one you're looking for. Could you please go to www.allmusic.com and
check whether you find him manually? Are your files properly tagged? I'm
only looking for the artist tag and, if it does not exist (eg. online
streaming), the title tag.

> Are you using the configured proxy server because it takes a while to
> generate the page.

Interesting question... don't think if LWP::UserAgent does not recognize
it automatically. I will have a look at it (will have to install a proxy
first :-/).

> Some errors caused here...
> Use of uninitialized value in pattern match (m//) at C:/Program
> Files/SlimServer/server/Plugins/Biography/Plugin.pm line
> 242.
> Use of uninitialized value in regexp compilation at C:/Program
> Files/SlimServer/server/Plugins/Biography/Plugin.pm line
> 248.

I've seen these two as well, but did not yet pay too much attention to
them as they were never show stoppers on my two machines.

Thanks for the feedback. I guess I was a little optimistic with releaseing
a 0.1 :-).

--

Michael

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

mherger
2005-02-04, 05:30
James

> B) I don't seem to be getting any data from Allmusic
> The page just says the artist's name and "information provided by
> allmusic". Have tried a few different ones.
> Are you using the configured proxy server because it takes a while to
> generate the page.

Could you please add the following instruction at about line 218:

$ua->env_proxy();

This is sub getArtistInfo and it should look like this:

my $ua = LWP::UserAgent->new(timeout => '10');
$ua->env_proxy();
my $req = POST $searchURL,...

Thanks!

--

Michael

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