Is there a way to decode movie title from imdb which contains special chars? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60) +--- Thread: Is there a way to decode movie title from imdb which contains special chars? (/showthread.php?tid=75544) |
Is there a way to decode movie title from imdb which contains special chars? - olympia - 2010-06-12 Hi spiff, I've found some movies where the hdtrailers.net scraper library I submitted wasn't worked and I figured it happens when the movie title (hdtrailers.net is being searched by the title) contains special and/or international chars. Further investigation showed that this is because the returned title from imdb is encoded "somehow". I don't even recognize what encode this is. For example: "Puskás Hungary" - Puskás Hungary "World's Greatest Dad" - World's Greatest Dad XBMC seems to read this code fine, because the title appears as it should in xbmc, but this obviously blocks using the title as a search string somewhere else. Is there a way to decode this string within the scraper? Thank you for your support in advance. - olympia - 2010-06-18 to anyone looking for this feature: http://trac.xbmc.org/changeset/31124 thanks vdrfan for implementing this! However it doesn't seem to work for me. I have the following in the scraper: Code: <RegExp input="$$1" output="\1" dest="19"> Code: <RegExp input="$INFO[TrailerQ]" output="<url function="Get480pTrailer">http://www.hd-trailers.net/blog/?s="$$19%28Theatrical%20Trailer%29%22</url>" dest="5+"> But in the log it seems the chars are not "fixed": Code: 07:31:42 T:5532 M:1248747520 DEBUG: scraper: GetIMDBDetails returned <details><url function="Get480pTrailer">http://www.hd-trailers.net/blog/?s="World%26%23x27%3bs%20Greatest%20Dad%20%28Theatrical%20Trailer%29%22</url></details> Do I use the fixchars tag incorrectly? Thanks for your support in advance. - spiff - 2010-06-18 problem was that fixchars ran after encode. fixed in r31174 - olympia - 2010-06-20 spiff Wrote:problem was that fixchars ran after encode. fixed in r31174 Thank you spiff, it's working now. |