Hi all,
First of all and mandatory, thanks HenrikDK for the best Youtube plugin ever.
That said I wanted to share a bug(?) I was experiencing in the last stable version available in the addons manager, to my best knowledge. This is my test environment:
Windows 7 Ultimate
XBMC Dharma Final
Youtube Addon 2.0.0
I must admit that I haven't checked throughtly the thread so maybe this has been already notified and solved or clarified. If that's the case, please excuse me and forget (or delete) this post. I just wanted to share a personal experience when using the addon and how I worked (solved sounds pretty arrogant on my part) around it.
Everything is working fine with the exception of the playlists that where giving a scripting error. I checked the log and found out that it was related to character coding in the title of the list. To be specific it was an error in the line 347 of file youtubecore.py.
this is the line in question:
Code:
video['Title'] = str(node.getElementsByTagName("title").item(0).firstChild.nodeValue.replace('Activity of : ', '').replace('Videos published by : ', '')).encode( "utf-8" );
As the error was caused by some conversion problem I decided to change the code to avoid it "the easy way".
Quote: try:
video['Title'] = str(node.getElementsByTagName("title").item(0).firstChild.nodeValue.replace('Activity of : ', '').replace('Videos published by : ', '')).encode( "utf-8" );
except:
print "JUR: ERROR. Can't handle the playlist name"
video['Title'] = "Unknown playlist"
That way I could finally see the list and figure out which one was the problematic list.
It turns out, as I suspected that the problematic lists (2) had non-ascii characters on their names. (As you probably already guessed from my poor syntax my native language is not English, but Spanish).
The lists where: "Cámera Café" and "Música". I just renamed them in youtube and now they work fine.
So, if you want to look into it to provide a better solution I will gladly help, if I can.
I'm sorry I can't provide the log right now, but I saw the error several days ago and since then I've been using my modified working copy so the error is long gone. If you need/want it just ask and I will gladly re-reproduce it and send the log.
Thanks for your time and again for the best youtube addon.
jur.
Ps. If the addon is ready for it I can provide a Spanish translation for the plugin. Do you want me to share it? Where?