Results 1 to 7 of 7

Thread: If you can handle xml with python read please

  1. #1
    Join Date
    Mar 2007
    Beans
    Hidden!

    If you can handle xml with python read please

    Hi, i want to export my rhythmbox ratings to itunes, i know is possible to do it with a python script because there is already one that goes the other way (importing itunes ratings in rhythmbox).


    We'll if anybody can help me with this, i've attached what i've got done so far, its a modification of the original script mentioned above, but is not working.

    I attack two small samples of both xmls files.

    I post here because im frustrated after 4 days of tinkering with this thing, i've tried several tools to manage xml.

    And i don't really want to lose 2 years of ratings just because rhythmbox can't write them to an ipod.
    Attached Files Attached Files

  2. #2
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: If you can handle xml with python read please

    did you tried ElementTree to parse XML? Since 2.5 is in core modules, if not- easy to install.

    FOr generating XML, I learned kid templating a while ago and am 100% happy.

  3. #3
    Join Date
    Mar 2007
    Beans
    Hidden!

    Re: If you can handle xml with python read please

    Oh thanks for the advice, i needed to know what should i learn since im a python noob.

  4. #4
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: If you can handle xml with python read please

    depends what you already know.... see wiki in my sig - links for Python learners

  5. #5
    Join Date
    Dec 2007
    Location
    .
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: If you can handle xml with python read please


  6. #6
    Join Date
    Mar 2007
    Beans
    Hidden!

    Re: If you can handle xml with python read please

    THank you that regex command works wonders and since this is a one time thing i don't need to learn complicated libraries to correctly parse my xml.

  7. #7
    Join Date
    Mar 2007
    Beans
    Hidden!

    Re: If you can handle xml with python read please

    I feel stupid i didnt needed to learn all this to export my ratings to itunes i fact i discovered a programming-less metod to export ratings from any media player to any media player.
    Simply create m3u playlists with itumes with 5 stars then one with 4 stars and so on.
    Then import and click the raiting on them ha!
    Thanks anyway

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •