Hi all.
I'm a complete scraper-making newbie, so I hope my questions below aren't really too simple. Would make me feel stupid
I tried asking on the swedish xbmc forum at xbmc.nu, but it seems I need international help :-)
I'm trying to do a scraper for the site filmdelta.se, which is the biggest movie database with swedish movie information. These are my concrete problems right now:
First problem: I can't seem to get thumbs working. My scraper returns a valid url to a jpeg image (tried downloading it using both Firefox, wget and curl), but xbmc somehow doesn't seem to accept it. From my xbmc.log:
The file tbn-file seems to be deleted imediately, giving me no really chance of checking what file xbmc really got...
Second problem: On movies for which I don't get exakt hits on filmdelta.se (ie movies that doesn't return one movie but an entire list) xbmc claims that my GetSearchResults returns nothing, though when I try the function myself (in nicezias scraperxml editor) it works. Below is a snippet from xbmc.log when xbmc is trying to pinpoint "Sagan om ringen" (which is swedish for Lord of the Rings).
I'll probably have more questions later. And my xml is probably full of errors. But this is a starting point...
I don't see a function for uploading files here. I guess the easiest way to get hold of my xml is to look in this thread at xbmc.nu:
http://www.xbmc.nu/index.php?option=com_...=3&id=2155
(my latest version is on page 2, post 2167)
/Daniel
I'm a complete scraper-making newbie, so I hope my questions below aren't really too simple. Would make me feel stupid
![Rolleyes Rolleyes](https://forum.kodi.tv/images/smilies/eyeroll.png)
I'm trying to do a scraper for the site filmdelta.se, which is the biggest movie database with swedish movie information. These are my concrete problems right now:
First problem: I can't seem to get thumbs working. My scraper returns a valid url to a jpeg image (tried downloading it using both Firefox, wget and curl), but xbmc somehow doesn't seem to accept it. From my xbmc.log:
Code:
20:29:42 T:2185611600 M:3250929664 INFO: Creating thumb from: http://www.filmdelta.se/functions/download.php?id=41432 as: special://masterprofile/Thumbnails/Video/b/bd0e3e2f.tbn
20:29:42 T:2185611600 M:3250929664 DEBUG: FileCurl::Open(0x7f9b82458c90) http://www.filmdelta.se/functions/download.php?id=41432
20:29:42 T:2185611600 M:3250929664 INFO: easy_aquire - Created session to http://www.filmdelta.se
20:29:43 T:2185611600 M:3250475008 DEBUG: FileCurl::Close(0x7f9b82458c90) http://www.filmdelta.se/functions/download.php?id=41432
20:29:43 T:2185611600 M:3250475008 INFO: Creating album thumb from memory: special://masterprofile/Thumbnails/Video/b/bd0e3e2f.tbn
20:29:43 T:2185611600 M:3250475008 INFO: msg: PICTURE::CreateThumbnailFromMemory: Unable to determine image type.
20:29:43 T:2185611600 M:3250475008 ERROR: PICTURE::CreateAlbumThumbnailFromMemory: exception: memfile FileType: .php
The file tbn-file seems to be deleted imediately, giving me no really chance of checking what file xbmc really got...
Second problem: On movies for which I don't get exakt hits on filmdelta.se (ie movies that doesn't return one movie but an entire list) xbmc claims that my GetSearchResults returns nothing, though when I try the function myself (in nicezias scraperxml editor) it works. Below is a snippet from xbmc.log when xbmc is trying to pinpoint "Sagan om ringen" (which is swedish for Lord of the Rings).
Code:
07:29:54 T:995793232 M:2989572096 DEBUG: DoScan Scanning dir '/home/daniel/fakemovies/Sagan om ringen/' as not in the database
07:29:54 T:995793232 M:2989572096 DEBUG: Hash[movies,/home/daniel/fakemovies/Sagan om ringen/]:DB=[],Computed=[0FD468F7F7EF9C804D7EE4DDECC0F23B]
07:29:54 T:995793232 M:2989572096 DEBUG: No NFO file found. Using title search for '/home/daniel/fakemovies/Sagan om ringen/sagan.avi'
07:29:54 T:995793232 M:2989572096 DEBUG: InternalFindMovie: Searching for 'sagan om ringen' using filmdelta scraper (file: 'filmdelta.xml', content: 'movies', language: 'sv', date: '2009-07-23', framework: '1.0')
07:29:54 T:995793232 M:2989572096 DEBUG: FileCurl::Open(0x365fe60) http://www.filmdelta.se/search.php?string=sagan%20om%20ringen&type=movie
07:29:59 T:995793232 M:2988548096 DEBUG: FileCurl::Close(0x365fe60) http://www.filmdelta.se/search.php?string=sagan%20om%20ringen&type=movie
07:29:59 T:995793232 M:2988548096 DEBUG: scraper: GetSearchResults returned <results></results>
07:29:59 T:995793232 M:2988548096 DEBUG: Not adding item to library as no info was found :(
07:29:59 T:995793232 M:2988548096 DEBUG: DoScan - Finished dir: /home/daniel/fakemovies/Sagan om ringen/
I'll probably have more questions later. And my xml is probably full of errors. But this is a starting point...
I don't see a function for uploading files here. I guess the easiest way to get hold of my xml is to look in this thread at xbmc.nu:
http://www.xbmc.nu/index.php?option=com_...=3&id=2155
(my latest version is on page 2, post 2167)
/Daniel