lotan / rhythmbox-ampache

Rhythmbox plugin to stream music from Ampache
GNU General Public License v2.0
21 stars 7 forks source link

sync my local library with ampache #20

Open SDAdham opened 6 years ago

SDAdham commented 6 years ago

Do we have a feature that allows us to sync local library with the ampache?

Thx

lotan commented 6 years ago

No, this plugin uses

https://github.com/ampache/ampache/wiki/XML-API

there is no option sending up data into the library.

But as I understand ampache's concept, that would only make limited sense anyway.

lachlan-00 commented 5 years ago

Hey! I am developing a fork of ampache called amuzak but also contribute to ampache directly. One of the features amuzak has over regular ampache is the large-xml files will actually parse instead of crashing. (https://github.com/ampache/ampache/pull/1875)

But on this issue I'm actually going to start working on a feature like this for rhythmbox.

Right now, if you call the play url it will give you the direct url to the mp3/flac/etc and write it a new play to the DB. So you could in theory curl the file and drop the contents.

What i'd like to do is search_song on the filename to find the track and set the play directly without pulling the play.php url of the file.

This only works for playback after the fact. To sync history back and forth between the two use my cache-fm rhythmbox plugin and sync the playback with ampache-scripts. (ampache-scripts isn't very easy but it works.) https://github.com/lachlan-00/cache-fm https://github.com/lachlan-00/ampache-scripts

lachlan-00 commented 5 years ago

Now i'm developing ampache and there is a scrobble function in the api.

Example plugin here. i'm going to extend on it a bit further before moving it into the ampache organisation but this scrobbles based on the track name, artist, album, mbid details if present. https://github.com/lachlan-00/ampache-fm