Re: [Rhythmbox-devel] Import statistics into rhythmbox

This looks really cool! I'm a happy user of both rhythmbox and, and hadn't learned of until now. I'll give
a shot now that I know about it.

One fix I have for you is that my rhythmbox.xml file is stored in:
not in
as you have hardcoded in . I attached a
tiny patch to which checks in both
locations for the rhythmdb.xml file. FYI, I'm using Rhythmbox 0.11.6
on Ubuntu Intrepid.

The script seemed to work for me after
the fix. Thanks for sharing this -- I hope it catches on, I could see
this being a handy plugin if integrated properly (e.g. clicking a
button in rhythmbox to handle the sync all in one pass).


On Thu, Apr 30, 2009 at 2:49 PM, Luca Invernizzi <invernizzi l gmail com> wrote:
> Hello,
>     I wrote a little python script that synchronizes the play counts of
>     each song in Rhythmbox with a account.
>     You can check it out at
>     Comments are appreciated.
>     Keep rocking,
>      Luca Invernizzi
> Version: GnuPG v1.4.9 (GNU/Linux)
> iEYEARECAAYFAkn58qcACgkQ7V+UQzNuZnxofQCfTQNQb2ieDjfDrw7/5ajSKMNA
> 6xUAnj5W6dlM0lUIkMOxez9ypErzRUWV
> _______________________________________________
> rhythmbox-devel mailing list
> rhythmbox-devel gnome org
<     lastfmdump_path = sys.argv[1]
<     rhythmdb_path = None
<     rbxml_paths = ['.local/share/rhythmbox/rhythmdb.xml', 
<                    '.gnome2/rhythmbox/rhythmdb.xml']
<     for rbxml_path in rbxml_paths:
<       if os.path.isfile(os.path.join(homedir, rbxml_path)):
<         rhythmdb_path = os.path.join(homedir, rbxml_path)
<     ## If we couldn't find the location of rhythmdb.xml, bail out now.
<     if not rhythmdb_path:
<       raise IOError, \
<             ("Could not find file rhythmdb.xml. Looked in the following "
<              "locations: %s" % repr(rbxml_paths))
>     rhythmdb_path = homedir+'/.local/share/rhythmbox/rhythmdb.xml'
>     lastfmdump_path = sys.argv[1]

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]