Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
2008-08-08, 13:16
(This post was last modified: 2008-08-08, 13:21 by spiff.)
read the faq @ movieposterdb - it wants just the numbers not the tt part. that might be one issue.
also you are stuffing info into buffer 10 in GetMoviePosterDB while you want to return buffer 5? i assume you have c&p'd this from the imdb scraper, you need to read more carefully what goes on there. in particular the usage of clearbuffers="no" and the concating of buffers in GetIMDBPoster
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
2008-08-08, 14:05
(This post was last modified: 2008-08-08, 14:12 by spiff.)
there is no documentation.
clearbuffers means that the buffers in the scraper isn't cleared between subsequent function calls. this allows passing data between the scraper functions. the point here is that in order to support multiple thumbs you need to have a <thumbs> tag around them. since you are fetching results in different functions, you need to do this in the end. that's what the imdb scraper does, you can see that it first calls GetIMPAPoster (which fills $$8, $$9 - dont ask me why those are in two buffers), then $$10 gets filled in GetMovieDBPoster, and $$11 in GetIMDBPoster itself, before finally wrapping them all up in a <thumbs> tag.
also note that you need the <details> tag outside it all (reason for this is that everything is recursive, and we use the same function to parse all returned xml...)
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
i got tired trying to explain shit so i just commit it to svn. enjoy