alehouse / cantata

Automatically exported from code.google.com/p/cantata
GNU General Public License v3.0
1 stars 0 forks source link

Can't save ratings when connected to remote server #641

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which version of Cantata?
r5687

I've verified that Cantata can correctly read ratings from files stored on the 
local machine even when connected to a remote server (when the music path is 
set and the collections are in sync on both machines), but it is then unable to 
save the ratings to the database.  The Save button can be clicked, but after 
closing the track information and reopening it, the track still has no rating.

I'm not sure if this is expected behavior, but it is at least confusing.

More generally, I'm not sure of the proper or best way to keep the ratings on 
two MPD servers in sync (or should I be talking about the sticker db?).  I have 
the ~/Music directory synced regularly with Unison on both machines, and I can 
have each MPD daemon update its database, but even if I read the ratings from 
files with Cantata and apply them to one daemon, they won't be applied to the 
other daemon.

Can you recommend a solution to this, or point me in the right direction to 
figure out a good way?  I suppose I could manually connect to each MPD server 
and have Cantata read and apply the ratings from all tracks in the collection, 
but that seems messy.  Maybe the "proper" solution would be an MPD plugin that 
would do what Cantata does for ratings but in the daemon itself.  Or perhaps 
something like a Python script that would run regularly to update the sticker 
db with the ratings from files in the collection.

Thanks for any ideas and all your work on Cantata.  It just keeps getting 
better.  :D

Original issue reported on code.google.com by alphadel...@gmail.com on 27 Feb 2015 at 12:44

GoogleCodeExporter commented 9 years ago
Ratings are stored in MPD's sticker database (sticker.sql?) I'm guessing this 
would need to be shared.

Ratings /should/ work on remote MPDs - as its's MPD itself that is saving the 
rating (Cantata just asks it to store a sticker called 'rating' with a value). 
Cantata does not store the rating within the song file. To Cantata there is no 
difference (as far as ratings are concerned) between local and remote.

I'm guessing you /can/ update the rating from the toolbar, its just that the 
tag dialog is not updating the rating correctly? I'll check later...

Original comment by craig.p....@gmail.com on 27 Feb 2015 at 8:01

GoogleCodeExporter commented 9 years ago
Please update

Original comment by craig.p....@gmail.com on 27 Feb 2015 at 6:24

GoogleCodeExporter commented 9 years ago

Original comment by craig.p....@gmail.com on 27 Feb 2015 at 6:25