2011-03-05, 18:15
i would use, deprecated but very fast, google search ajax api, for search films in mymovies.it, with this similar url:
https://ajax.googleapis.com/ajax/service...o%20Aliens
The server answer is a json structure with many fields and i have a problem with url returned:
In the first field (unescapedUrl) i think it's utf-8 encoded string, and in "url" field is ASCII character encoding.
Well, when i insert in xml result structure:
Xbmc can't open the url in the "encoded state"...i'll try with "fixchars" and with "SearchStringEncoding="UTF-8"" with no result
Another question, how can make the union of two search results?
I have tried append to buffer two url tags in CreateSearchUrl, but only one is resolved.
I hope my poor english is enough clear
thanks!
https://ajax.googleapis.com/ajax/service...o%20Aliens
The server answer is a json structure with many fields and i have a problem with url returned:
- "unescapedUrl":"http://www.mymovies.it/dizionario/recensione.asp?id\u003d744"
- "url":"http://www.mymovies.it/dizionario/recensione.asp%3Fid%3D744"
In the first field (unescapedUrl) i think it's utf-8 encoded string, and in "url" field is ASCII character encoding.
Well, when i insert in xml result structure:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><results><entity><title>\2 \3</title><url>[b]URL or UNESACPEDURL[/b]</url><id>\1</id></entity></results>
Xbmc can't open the url in the "encoded state"...i'll try with "fixchars" and with "SearchStringEncoding="UTF-8"" with no result
Another question, how can make the union of two search results?
I have tried append to buffer two url tags in CreateSearchUrl, but only one is resolved.
I hope my poor english is enough clear
thanks!