Problem with image spoofing
#1
I began writing my own scraper and it works fine so far when using an .nfo file.
I get all the informations from the page I need, the only problem is, that i cant get the images from the page.

So I tried spoofing but it didn't work.
Now im not sure if my syntax isn't correct or if my spoof url is wrong (i tried to log it with wireshark).

The XBMC page says:

Code:
<thumb><url spoof="http://http://www.culturalianet.com">http://www.culturalianet.com/imatges/articulos/\1-1.jpg</url></thumb>

(the double http:// is a mistake?)

and other scrapers use:

Code:
<thumb spoof="http://www.adultcdmovies.net">http://www.adultcdmovies.net/images/Product/large/\1.jpg</thumb>

Which one is correct or do both work?

And has somebody a good suggestion to find the spoof url or how i can test, if have got the correct one?

One final question, are scrapers loaded on the fly or at boot time, so do i have to restart xbmc so changes take effect?
Reply
#2
follow the real life examples Smile

usually just spoofing the the root server url is enough, i.e. http://www.some.com for images grabbed from http://www.some.com/<something>. if you get a thumb downloaded the spoof url is correct Wink

scrapers are loaded on the fly when you use them.

easiest way of testing is using something like curl --referer or wget --referer
Reply
#3
Thanks for answering all my questions so quickly!

I got the image issue solved.

Thanks to the xbmc.log i found out that my regex produced .jpg.jpg

Now I'll get started with the Search.
Reply

Logout Mark Read Team Forum Stats Members Help
Problem with image spoofing0