Home of the Squeezebox™ & Transporter® network music players.

Go Back   Squeezebox : Community : Forums > User Forums > 3rd Party Plugins
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-05-24, 07:06
flemming flemming is offline
Member
 
Join Date: Jun 2008
Posts: 64
flemming is on a distinguished road
Default Announce: Ampache plugin 1.0

After what feels like an eternity of development, I'm happy to announce my first SqueezeCenter plugin. It provides SqueezeCenter with access to music stored on an Ampache server. You can find more info about Ampache at their site:

http://www.ampache.org/

You can download the plugin from:

http://ampache-squeezecenter.googlecode.com/

Since the plugin utilizes Ampache's XML based API the server can be located anywhere, effectively allowing SqueezeCenter to have a remote catalog. Essentially this provides similar functionality to the MP3Tunes plugin, minus the cost, but plus the need to setup and run an Ampache instance somewhere. Since you can connect multiple Ampache instances together, you and your friends can share your catalogs with each other and have access to everyone's music through SqueezeCenter.

Since Ampache development is out of my control there are a few documented issues, but the majority of the functionality works as intended and should be fully functional after the next Ampache release.

Please report any bugs or feature requests you might have. Patches and suggestions are always welcome. I'm sure some of the more savvy plugin developers out there might have a tip or two as to how I could have done things better. Enjoy.

Robert
Reply With Quote
  #2  
Old 2009-06-13, 11:32
egd's Avatar
egd egd is offline
Banned
 
Join Date: Jan 2006
Location: Johannesburg, South Africa
Posts: 1,692
egd is on a distinguished road
Default

This is great news, I've been waiting for this to come along for as long as I've known of Ampache. Thank you :-)
Reply With Quote
  #3  
Old 2009-06-27, 10:22
Silverbullet Silverbullet is offline
Junior Member
 
Join Date: Feb 2006
Posts: 19
Silverbullet is on a distinguished road
Default I'm getting 404 Not Found error

Robert,
Tried installing the plugin with extension downloader and manually. Every time when I go to settings>plugins>ampache>settings I get "404 Not Found: settings/plugins/Ampache/settings/basic.html". Any suggestions? Thanks in advance.
Silverbullet

Version: 7.3.3 - 27044 @ Mon Jun 15 15:14:08 PDT 2009
Hostname: Ted3
IP: 192.168.1.22
HTTP Port: 9000
OS: Windows XP - EN - cp1252
Platform: 586
Perl Version: 5.8.8 - MSWin32-x86-multi-thread
MySQL Version: 5.0.22-community-nt
Total Players Recognized: 5
Reply With Quote
  #4  
Old 2009-06-27, 10:27
flemming flemming is offline
Member
 
Join Date: Jun 2008
Posts: 64
flemming is on a distinguished road
Default

Quote:
Originally Posted by Silverbullet View Post
Robert,
Tried installing the plugin with extension downloader and manually. Every time when I go to settings>plugins>ampache>settings I get "404 Not Found: settings/plugins/Ampache/settings/basic.html". Any suggestions? Thanks in advance.
Yup, the problem was I assumed that everyone's PERL install would include a particular module and it doesn't. I released version 1.1 earlier this week which includes Digest::SHA::PurePerl which should fix this problem.
Reply With Quote
  #5  
Old 2009-06-27, 10:50
Silverbullet Silverbullet is offline
Junior Member
 
Join Date: Feb 2006
Posts: 19
Silverbullet is on a distinguished road
Default

Quote:
Originally Posted by flemming View Post
Yup, the problem was I assumed that everyone's PERL install would include a particular module and it doesn't. I released version 1.1 earlier this week which includes Digest::SHA::PurePerl which should fix this problem.
In my case this did not fix my problem. I have 1.1 installed and I still get the 404 error. Any additional things I can check?
Reply With Quote
  #6  
Old 2009-06-27, 11:00
flemming flemming is offline
Member
 
Join Date: Jun 2008
Posts: 64
flemming is on a distinguished road
Default

Turn on debugging for 'plugin.ampache' under 'Settings/Advanced/Logging' and then check out the squeezecenter log file (not sure where that lives under Windows) for some hopefully more useful info. Let me know what you find. I've never tested the plugin under Windows, so there may be a couple other things I took for granted because I'm using Linux.
Reply With Quote
  #7  
Old 2009-06-27, 11:09
Silverbullet Silverbullet is offline
Junior Member
 
Join Date: Feb 2006
Posts: 19
Silverbullet is on a distinguished road
Default

Quote:
Originally Posted by flemming View Post
Turn on debugging for 'plugin.ampache' under 'Settings/Advanced/Logging' and then check out the squeezecenter log file (not sure where that lives under Windows) for some hopefully more useful info. Let me know what you find. I've never tested the plugin under Windows, so there may be a couple other things I took for granted because I'm using Linux.
Funny thing there is no plugin.ampache in the list. But here is something from the log:
[09-06-27 14:05:32.5469] Slim::bootstrap::tryModuleLoad (278) Warning: Module [Plugins::Ampache::Plugin] failed to load:
Can't locate object method "BINMODE" via package "Slim::Utils::Log::Trapper" at /<C:\Program Files\SqueezeCenter\server\squeezecenter.exe>CGI.p m line 797.
BEGIN failed--compilation aborted at Ampache/Ampache.pm line 33.
Compilation failed in require at Plugins/Ampache/Plugin.pm line 24.
BEGIN failed--compilation aborted at Plugins/Ampache/Plugin.pm line 24.
Compilation failed in require at (eval 1152) line 2.
BEGIN failed--compilation aborted at (eval 1152) line 2.

[09-06-27 14:05:32.5477] Slim::Utils::PluginManager::enablePlugins (493) Error: Couldn't load Plugins::Ampache::Plugin
Reply With Quote
  #8  
Old 2009-06-28, 09:28
flemming flemming is offline
Member
 
Join Date: Jun 2008
Posts: 64
flemming is on a distinguished road
Default

Hmmm, I'll need to dig up a Windows machine and do some poking around. I'll get back to you.
Reply With Quote
  #9  
Old 2009-06-28, 12:43
egd's Avatar
egd egd is offline
Banned
 
Join Date: Jan 2006
Location: Johannesburg, South Africa
Posts: 1,692
egd is on a distinguished road
Default

Robert

I've gotten the plugin (1.1) installed and configured and I've got Ampache v.3.5-Beta2 Subversion Rev: 2001 running.

Looking at the plugin settings it asks for:
Ampache version #
Ampache server URL
Ampache username
Ampache password

I've supplied all these, saved the changes and restarted SC. Where to from here?

Last edited by egd; 2009-06-28 at 12:48.
Reply With Quote
  #10  
Old 2009-06-28, 13:51
flemming flemming is offline
Member
 
Join Date: Jun 2008
Posts: 64
flemming is on a distinguished road
Default

First off I'd highly suggest upgrading Ampache to 3.5.1 as it fixes a number of bugs in the API that the plugin relies on, but the SVN version you have may have those fixes already too. If you've got things configured and you've restarted Squeezecenter you should see Ampache under Music Services. If you don't then I'm going to jump out a window

Last edited by flemming; 2009-06-28 at 14:41.
Reply With Quote
Reply

Tags
ampache

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 20:28.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.