There is nothing to see in the log on the original gui.ty since what happens is that 'self.title' fails on all letters encoded, but since errors are ignored it returns an empty string, or in most cases two bytes, but nothing is logged.
After my change I get the following error in the except:
Code:
'ascii' codec can't encode characters in position 0-7: ordinal not in range(128)
and that is all the relavent info in the log. If the title would have been empty (rather then two bytes) I could just do an empty check instead of using the try except, but its not...
If you wan't to see this happening just grab the Sratim movie scraper from the xbmc repository run it on an example movie and try to download subtitles. If you can't give me an email I can send you the scrapers I use....
As a solution to the problem you raised we can add the following code at the end of the except:
Code:
if self.title == ""
self.title = xbmc.getInfoLabel("VideoPlayer.Title")
at the point of this if we know ascii is no go, originalTitle does not exist so all that's left to do is get the Title as is