It is possible to use 2 sites in one scraper?
I wan't to use a main site to search for the movies (and get it's details) but if a movie isn't found there, it should be searched in imdb and get the details in imdb.
2 sites in one scraper
rgf21
Junior Member Posts: 25 Joined: Dec 2008 Reputation: 0 |
2009-01-03 20:45
Post: #1
|
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2009-01-03 20:51
Post: #2
sure, that could be pulled off. but not without a lof of c&p currently (i.e. you cannot link to the imdb scraper, you will have to have all expressions inside your). if that is fine; do the movie search in createsearchurl. in getsearchresults, if none is found, chain to a new function that handles the imdb search. in addition you would need something in getdetails to distinguish between the two (something like a regexp that moves stuff conditionally to buffer 5, then the imdb grabbing expressions take buffer 5 as input)
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 |

Search
Help