[Rhythmbox-devel] python plugin help add_location



What is the correct way to encode a track to be added to the queue, my current code seems to work until i hit an ' or in the examples below
file:///home/oly/Music/from%20server/Albums/bon%20jovi/(1984)%20-%20Bon%20Jovi/03-She%20don%27t%20know%20me
file:///home/oly/Music/from%20server/Albums/bon%20jovi/(1984)%20-%20Bon%20Jovi/03-She%20don%27t%20know%20me

the first fails because of the %27 in this song "she don't know me" so i am guessing i am doing something wrong with the encoding ?

Obviously direct in rhythmbox this track queue fine anyone able to point me in the direction as to whats wrong with the encoded uri above ?
I could not find much on the exact escaping i should be using with this function.


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