|
From: Liron T. <lir...@gm...> - 2011-07-17 21:34:18
|
Hi, I'm writing a python script \ Rhythmbox plugin using libgpod to have two-way sync of metadata between my ipod and Rhythmbox. I'm mainly intrested in syncing the rating, play count and last played data. I thought of two possible ways to update a track: 1. I've read the reference manuel and in the track object there are no update() method. the only method I've seen that updates the DB is itdb_write(). I guess that's the optimal option but does it update the whole itdb on my Ipod or is it in some way checking the diff and updating only the changes? also, is there a refrence to a code example of using these methods or are they as straight forward as they seem? 2. Using the track object, I guess I can have it's location and than update the Mp3's ID3 tag. Is it a legit way to update metadata ? The problem is that "rating" is only stored in the itdb and not in a id3tag so this hack isn't really optional. Are there any update methods to update only specific tracks? I'd be happy to understand what's the best approach to this issue. Thanks, Liron. |