New to Ampache: need help with Subsonic API

1,059 views
Skip to first unread message

Dan

unread,
Oct 8, 2016, 3:27:45 PM10/8/16
to Ampache
I'm switching over from Subsonic to Ampache 3.8.2. I've got the web interface up and running, added my catalog and can play music in the browser.

I'm trying to get DSub to successfully connect and I'm running into problems. 



I have ampache install under lighttpd in the /ampache directory. Here's my extra config info I got from https://github.com/ampache/ampache/wiki/Installation

    url.rewrite-if-not-file += (
        "^/ampache/(.*)\.(css|js|jpg|png|gif)$" => "/ampache/$0",
        "^/ampache/rest/(.+)\.view$" => "/ampache/rest/index.php?ssaction=$1",
        "^/ampache/rest/fake/(.+)$" => "/ampache/play/$1",
        "^/ampache/play/art/([^/]+)/([^/]+)/([0-9]+)/thumb([0-9]*)\.([a-z]+)$" => "/ampache/image.php?object_type=$2&object_id=$3&auth=$1&th
umb=$4&name=art.jpg",
        "^/ampache/play/([^/]+)/([^/]+)/([^/]+)/([^/]+)(/.*)?$" => "/ampache/play/$5?$1=$2&$3=$4",
        "^/ampache/play/([^/]+)/([^/]+)(/.*)?$" => "/ampache/play/$3?$1=$2",
        "^/ampache/play(/[^/]+|[^/]+/|/?)$" => "/ampache/play/index.php",
        "^/ampache/channel/([0-9]+)/(.*)$" => "/ampache/channel/index.php?channel=$1&target=$2"
    )

web_path = http://nanners/ampache


In https://github.com/ampache/ampache/wiki/API I see some different rewrites for lighttpd. I don't have that one in my config yet. Should I replace the similar one from above with the one below or use both?

url.rewrite-once = (
  "^/rest/(([^\?]+)\.view)(\?(.*))?" => "/rest/index.php?ssaction=$2&$4"
)
http://nanners/ampache/rest/ping.view brings back the correct response, but I get an error when I try test connection in DSub.

Dan

unread,
Oct 8, 2016, 3:37:47 PM10/8/16
to Ampache
Adding the addition url.rewrite-once seems to have done the trick.

Vincent Grotkopp

unread,
Oct 11, 2017, 8:20:33 PM10/11/17
to Ampache
Hi Dan,

I ran into the exact same problems, also having the same setup (just that my web_path in the ampache.cfg.php is "" . I would use my http://IP-Address/ampache to use ampache)
Adding the url.rewrite-once only seems to have enabled a connection with the ampache server, but it's still impossible to play an actual song. I can browse and also artwork shows, but I still can't play.

Have you been able to find a fix for this? Is anyone else able to help me in those regards?

Cheers!

Ernie D

unread,
Oct 12, 2017, 10:04:50 AM10/12/17
to amp...@googlegroups.com

Hello Vincent,


Did you read the wiki at https://github.com/ampache/ampache/wiki/API on
setting up the subsonic API?


Also, adding your issue at https://github.com/ampache/ampache/issues
might get more responses.



73 From AA1AD
Ernie D
Federal Way, WA | CN87ug
> --
> You received this message because you are subscribed to the Google
> Groups "Ampache" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ampache+u...@googlegroups.com
> <mailto:ampache+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ampache/92f45b5c-b4d5-4d63-9feb-f23cced260a8%40googlegroups.com
> <https://groups.google.com/d/msgid/ampache/92f45b5c-b4d5-4d63-9feb-f23cced260a8%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages