Kodi Community Forum
Guys, interest question... - 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: Guys, interest question... (/showthread.php?tid=60790)



Guys, interest question... - BAG_Ass - 2009-11-03

Hi!
Im russian and have question about scraper
scraper use http request to site with info.
When site use latin symbols it is ok, but when it use non-latin symbols
they urlencoded to %C3%E0%F0 sequence.
When i use kinopoisk.html it make a bad request to kinopoisk.ru and site return wrong content. Is in scraper possibility to make content replace
for example - russian "G" to %C3 and so on?

Thanks!

XBMC for windows and mac has the same result.


- spiff - 2009-11-03

you have a search string encoding parameter. that sets the charset, which we convert to prior to url encoding then passing to the scraper. the scraper can then modify this as it see's fit in the createsearchurl if it see's the move.

however, if kinopoisk doesn't understand, i think the reason must be that the searchstringencoding setting must be wrong.


- BAG_Ass - 2009-11-03

spiff
When i put in search string:
<RegExp input="$$1" output="http://www.kinopoisk.ru/index.php?level=7&amp;from=forma&amp;result=adv&amp;m_act%5Bfrom%5D=forma&amp;m_act%5Bwhat%5D=content&amp;m_act%5Bfind%5D=\1&amp;m_act%5Byear%5D=&amp;m_act%5Bcountry%5D=&amp;m_act%5Bgenre%5D=&amp;m_act%5Bcompany%5D=&amp;m_act%5Bmpaa%5D=&amp;m_act%5Bactor%5D=&amp;m_act%5Bcast%5D=&amp;m_act%5Bcontent_find%5D=" dest="3">

find%5D=%C3%E0%F0 without find%5D=\1 - i got right resalt


This forum uses Lukasz Tkacz MyBB addons.