Linux MovieDB scraper failing to connect, API key invalid
#1
I just installed XBMC Eden through the official Ubuntu repositories, listed in System Info as "XBMC 11.0 Git:Unknown (Compiled : Apr 7 2012)" on Ubuntu 12.04 Precise (x86_64). I haven't installed any additional add ons, changed the theme, or tweaked any settings beyond turning the debug logging on. The scrapper AddOns that should run when adding a new Videos source (and choosing them to run) are not running properly. The initial source addition and subsequent attempts to "Scan for New Content" (with the whole folder) or "Update Library" (with a specific file) simply results in a "Could not download information / Unable to connect to remote server. Would you like to continue scanning?" dialog. This seems to just be with the "MovieDB" scraper.

See debug log here: https://gist.github.com/2403243

The important part, from what I can see, is the following:

Code:
23:43:16 T:140047290066688  NOTICE: VideoInfoScanner: Starting scan ..
23:43:16 T:140047290066688   DEBUG: VideoInfoScanner: Scanning dir '/mnt/storage/Shares/Storage/Videos/Movies/' as not in the database
23:43:16 T:140047290066688   DEBUG: VideoInfoScanner: No NFO file found. Using title search for '/mnt/storage/Shares/Storage/Videos/Movies/Spaceballs.1987.BDRip.H264.AAC.Gopo.mp4'
23:43:16 T:140047290066688   DEBUG: FindMovie: Searching for 'Spaceballs' using The MovieDB scraper (path: '/home/xbmc/.xbmc/addons/metadata.themoviedb.org', content: 'movies', version: '3.1.0')
23:43:16 T:140047290066688   DEBUG: scraper: CreateSearchUrl returned <url>http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&query=spaceballs+1987&language=en</url>
23:43:16 T:140047290066688   DEBUG: FileCurl::Open(0x7f5f4cf9d310) http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9query=spaceballs+1987language=en
23:43:16 T:140047290066688    INFO: easy_aquire - Created session to http://api.themoviedb.org
23:43:16 T:140047290066688 WARNING: FillBuffer: curl failed with code 22
23:43:16 T:140047290066688   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
23:43:16 T:140047290066688   ERROR: Run: Unable to parse web site

If I try to curl the mentioned URL, we see that the API key in use appears to be invalid:

Code:
curl http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9query=spaceballs+1987language=en
{"status_code":7,"status_message":"Invalid API key - You must be granted a valid key"}

I'm guessing this is ultimately an issue that could be resolved with an update to the add-on? Not sure why the API key is invalid or why that wouldn't be noticed immediately though.
Reply
#2
Same issue here. Curl doesn't work, but loading the url in a browser does. For the time being, I installed the IMDB scraper and switched to that. I'd like to switch back to the TMDB scraper though.
Reply
#3
Found that there is an open Trac ticket for this
http://trac.xbmc.org/ticket/12910
Reply
#4
Can't comment on the bug(?) but anyway: I noticed the two URLs are different, the requested one works but the line given by curl does not: no "&" characters between queries.
Code:
19:47:33 T:2818550592   DEBUG: scraper: CreateSearchUrl returned <url>http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&query=query&language=en</url>
19:47:33 T:2818550592   DEBUG: FileCurl::Open(0xa7ff9a08) http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9query=querylanguage=en
19:47:33 T:2818550592 WARNING: FillBuffer: curl failed with code 22
Reply
#5
(2012-04-18, 01:58)sread Wrote: Can't comment on the bug(?) but anyway: I noticed the two URLs are different, the requested one works but the line given by curl does not: no "&" characters between queries.
Code:
19:47:33 T:2818550592   DEBUG: scraper: CreateSearchUrl returned <url>http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&query=query&language=en</url>
19:47:33 T:2818550592   DEBUG: FileCurl::Open(0xa7ff9a08) http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9query=querylanguage=en
19:47:33 T:2818550592 WARNING: FillBuffer: curl failed with code 22

Ahhh, good catch! I just noticed that another scraper (AniDB.net) seemed to be doing the same thing, where it was lacking the proper "&" characters to separate the parameters.
Reply
#6
Olympia just released v3.2 of the TMDB scarper and the issue is fixed for me now.
Reply

Logout Mark Read Team Forum Stats Members Help
MovieDB scraper failing to connect, API key invalid0