2010-06-12, 21:18
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.
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.