I try to edit scraper Kinopoisk but can`t understand this link
<CreateSearchUrl dest="3" SearchStringEncoding="CP1251">
<RegExp input="$$1" output="http://www.kinopoisk.ru/index.php?kp_query=\1" dest="3">
<expression noclean="1"></expression>
</RegExp>
</CreateSearchUrl>
<GetSearchResults dest="8">
<RegExp input="$$5" output="<?xml version="1.0" encoding="windows-1251" standalone="yes"?><results>\1</results>" dest="8">
<RegExp input="$$1" output="<entity><title>\2-\4</title><url>http://www.kinopoisk.ru/\1</url></entity>" dest="5+">
<expression repeat="yes">class="all" href="/([l].*?)">(.*?)<(.*?)["|e];>([0-9]*)<</expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
</GetSearchResults>
XBMC log:
22:15:31 T:2960957440 M: 44544000 DEBUG: FileCurl::Open(0xbfffd524) http://www.kinopoisk.ru/index.php?kp_que...4%e8%eb%e4
22:15:31 T:2960957440 M: 44523520 INFO: easy_aquire - Created session to http://www.kinopoisk.ru
22:15:33 T:2960957440 M: 44449792 DEBUG: FileCurl::Close(0xbfffd524) http://www.kinopoisk.ru/index.php?kp_que...4%e8%eb%e4
22:15:33 T:2960957440 M: 44449792 DEBUG: scraper: GetSearchResults returned <?xml version="1.0" encoding="windows-1251" standalone="yes"?><results></results>
22:15:33 T:2960957440 M: 44449792 ERROR: Process: Error looking up movie Гарфилд
May be somebody explain me link between CreateSearchUrl and GetSearchResults? Thanks!
could somebody help....
BAG_Ass
Fan Posts: 377 Joined: Dec 2006 Reputation: 0 |
2009-11-14 21:21
Post: #1
|
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2009-11-14 22:46
Post: #2
CreateSearchUrl creates the url used to search. We then fetch this, and pass the results from the search to GetSearchResults.
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
BAG_Ass
Fan Posts: 377 Joined: Dec 2006 Reputation: 0 |
2009-11-14 23:42
Post: #3
pass the results from the search to - how? by default to $$1?
It is work if i delete expression and hardwrite output, but if i try to make expression it couldn`t. I download scraper edit and test expression - it works (it chose right parameters) - so i`ve last one - i got wrong data from - CreateSearchUrl - how can i check it? i wrote (.*?) as expression and got null PS may be troubles is in timeout? site downloading a long time. There is a big background picture
(This post was last modified: 2009-11-15 00:20 by BAG_Ass.)
|
| find quote |

Search
Help