Libgpod :Best approach to update track's metadata on Ipod

Liron Tal <[email protected]> Mon, 18 Jul 2011 00:34:11 +0300
Newsgroups gmane.comp.ipod.gtkpod
Message-ID <CAM_Zp-AEQYDpAvrqkRh4+cP_NN4fpyq6s0CF1cvt4tPSRzM=tg@mail.gmail.com>
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.

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev

_______________________________________________
Gtkpod-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-devel