Re: Plugin URL prefix mapping?

bpa <bpa.a1drfz-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
cpd73 wrote: 
> Yup, but that is from a Plugin not ProtocolHandler. Not sure how I get
> from a ProtocolHandler to its Plugin?

Within LMS all plugin are in "Plugin" folders so their names are of the
form Plugin::<pluginname> 

The protocol handlers that do not begin with "Plugin" are LMS.

Full list of plugin data can be got from 
Slim::Utils::PluginManager->allPlugins  (Sounds entry shown) 
The "'module" entry (or basedir) to match with plugin name derived from
answer from handlerfromURL - messy but doable. 


Code:
--------------------
    
  'Sounds' => {
  'basedir' => '/mnt/hddrive/home/ubuntu/repos/logitechmediaserver/Slim/Plugin/Sounds',
  'creator' => 'Logitech',
  'defaultState' => 'enabled',
  'description' => 'PLUGIN_SOUNDS_MODULE_NAME',
  'enforce' => '1',
  'error' => 'INSTALLERROR_SUCCESS',
  'homepageURL' => 'http://www.mysqueezebox.com/appgallery/Sounds',
  'icon' => 'plugins/Sounds/html/images/icon.png',
  'id' => '0381A1D8-7CDF-4236-BA8B-E92553162EDE',
  'module' => 'Slim::Plugin::Sounds::Plugin',
  'name' => 'PLUGIN_SOUNDS_MODULE_NAME',
  'needsMySB' => 'true',
  'targetApplication' => {
  'id' => 'Logitech Media Server',
  'maxVersion' => '*',
  'minVersion' => '7.0'
  },
  'type' => '2',
  'version' => '1.0'
  },
  
--------------------


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=114546
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.