I'm trying to write a simple plugin based upon the LMA plugin to load
streams from the Panic Stream website. Other than getting the OPML feeds
working, this seemed pretty simple, but I'm having problems getting the
plugin to load: 

[15-06-30 10:44:40.6452] Slim::bootstrap::tryModuleLoad (286) Warning:
Module [Slim::Plugin::Panic::Plugin] failed to load:
Can't locate Slim/Plugin/Panic/Plugin.pm in @INC (@INC contains:
/var/lib/squeezeboxserver/cache/InstalledPlugins
/usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi
/usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto
/usr/share/squeezeboxserver/CPAN/arch/5.8.8/x86_64-linux-thread-multi
/usr/share/squeezeboxserver/CPAN/arch/5.8.8/x86_64-linux-thread-multi/auto
/usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi
/usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto
/usr/share/squeezeboxserver/CPAN/arch/x86_64-linux-thread-multi
/usr/share/squeezeboxserver/CPAN/arch/5.8
/usr/share/squeezeboxserver/lib /usr/share/squeezeboxserver/CPAN
/usr/share/squeezeboxserver /usr/libexec
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .)
at (eval 989) line 2.
BEGIN failed--compilation aborted at (eval 989) line 2.

[15-06-30 10:44:40.6476] Slim::Utils::PluginManager::load (321) Error:
Couldn't load Slim::Plugin::Panic::Plugin

I have put the plugin's files into
/var/lib/squeezeboxserver/Plugins/Panic/. The install.xml file looks
like this:

<?xml version="1.0"?>

<extension>
        <id>C9145737-D509-4DE9-8DCA-A2D31D0FF1B5</id>
        <name>PLUGIN_PANIC_MODULE_NAME</name>
        <module>Slim::Plugin::Panic::Plugin</module>
        <version>1.0</version>
        <description>PLUGIN_PANIC_MODULE_NAME_DESC</description>
        <creator>Richard Heck</creator>

        <defaultState>enabled</defaultState>

        <homepageURL>http://bobjweil.com/</homepageURL>
        <icon>plugins/Panic/html/images/icon.png</icon>
        <type>2</type><!-- type=extension -->

        <targetApplication>
                <id>Logitech Media Server</id>
                <minVersion>7.0a</minVersion>
                <maxVersion>*</maxVersion>
        </targetApplication>

</extension>

and Plugin.pm is:

package Slim::Plugin::Panic::Plugin;

# $Id$

# Load Panic Stream data via an OPML file - so we can ride on top of the
Podcast Browser

use strict;
use base qw(Slim::Plugin::OPMLBased);

use Slim::Networking::SqueezeNetwork;

sub initPlugin {
        my $class = shift;

        Slim::Player::ProtocolHandlers->registerIconHandler(
                qr/(?:panicstream.com)/, 
                sub { return $class->_pluginDataFor('icon'); }
        );

        $class->SUPER::initPlugin(
                feed      => 'http://bobjweil.com/panic/panic.opml',
                tag       => 'panic',
                menu      => 'music_services',
                style     => 'albumcurrent',
                weight    => 60,
                is_app    => 1,
        );
}

sub getDisplayName {
        return 'PLUGIN_PANIC_MODULE_NAME';
}

# Don't add this item to any menu
sub playerMenu { }

1;

Help?



Transporter --> Pass Labs D1 --> Pass Labs Aleph 2s --> BC Acoustique
A2.5s (listening room)
Transporter --> Pass Labs D1 --> Adcom GFA-5800 --> Monitor Audio GR-60s
(living room)
Receiver --> T-Amp --> Monitor Audio Radius 90s (daughter)
Receiver --> Sony HT Receiver (Garbage) --> Monitor Audio Raduis HT
Setup (bedroom)
Squeezebox Boom (exercise room)
SqueezeboxServer on a 350MHz Pentium II with 768MB RAM, 1.5TB storage,
running Centos 5.x

http://frege.brown.edu/heck/audio/mysystem.php
------------------------------------------------------------------------
rgheck's Profile: http://forums.slimdevices.com/member.php?userid=25803
View this thread: http://forums.slimdevices.com/showthread.php?t=103888

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to