XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Scraper Development

Scraper Development Developers forum for meta data scrapers. Scraper developers only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2008-08-08, 14:02   #1
mafis90
Senior Member
 
Join Date: Aug 2008
Posts: 114
mafis90 is on a distinguished road
Default OFDB MovieposterDB doesn't work why ?

Hi,
i try to add the GetMoviePosterDB Thumbs add to the OFDB Scraper, but it doesn't work, what's my failure ?

Here is my Scraper Code : http://pastebin.com/m14ffbe81

Big THX

mafis90
mafis90 is offline   Reply With Quote
Old 2008-08-08, 14:16   #2
spiff
Grumpy Bastard Developer
 
spiff's Avatar
 
Join Date: Nov 2003
Posts: 7,715
spiff is on a distinguished road
Default

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
__________________
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.

Last edited by spiff; 2008-08-08 at 14:21.
spiff is offline   Reply With Quote
Old 2008-08-08, 14:57   #3
mafis90
Senior Member
 
Join Date: Aug 2008
Posts: 114
mafis90 is on a distinguished road
Default

And where i found a documentation about this ?

In the Scraper Wiki http://xbmc.org/wiki/?title=Scraper.xml stand nothing about cleanbuffers or thumbs ?

mafis90
mafis90 is offline   Reply With Quote
Old 2008-08-08, 15:05   #4
spiff
Grumpy Bastard Developer
 
spiff's Avatar
 
Join Date: Nov 2003
Posts: 7,715
spiff is on a distinguished road
Default

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...)
__________________
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.

Last edited by spiff; 2008-08-08 at 15:12.
spiff is offline   Reply With Quote
Old 2008-08-08, 16:09   #5
mafis90
Senior Member
 
Join Date: Aug 2008
Posts: 114
mafis90 is on a distinguished road
Default

Can somebody help me please, because without a Documentation i can't unterstand this. I test it since Monday, and i doesn't work.


THX

mafis90
mafis90 is offline   Reply With Quote
Old 2008-08-08, 19:46   #6
mafis90
Senior Member
 
Join Date: Aug 2008
Posts: 114
mafis90 is on a distinguished road
Default

So one Idea http://pastie.org/250041, what is wrong it loads the OFDB Thumb, but not the MoviePosterDB Cover.

The Scraper Update is from spiff, but he don't find the failure, too.

If Somebody have a idea, what`s wrong post.

mafis90

( I can't edit my last post why? )
mafis90 is offline   Reply With Quote
Old 2008-08-08, 20:33   #7
spiff
Grumpy Bastard Developer
 
spiff's Avatar
 
Join Date: Nov 2003
Posts: 7,715
spiff is on a distinguished road
Default

i got tired trying to explain shit so i just commit it to svn. enjoy
__________________
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.
spiff is offline   Reply With Quote
Old 2008-08-08, 20:35   #8
mafis90
Senior Member
 
Join Date: Aug 2008
Posts: 114
mafis90 is on a distinguished road
Default

OK Thx
mafis90 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:25.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project