TMDB scraper using imdb tt indexes in Movie.getImages call
#1
Noticed one of my movies isn't having the poster artwork returned from TMDB so enabled debug and got the following:

1) XBMC notices movie not in database so scrapes:
Quote:19:33:29 T:3060431728 M:1842192384 DEBUG: GetMovieId (/mnt/frodo/videos/movies/Pocahontas.avi), query = select idMovie from movie where idFile=35

2) XBMC uses tmdb api to search for the movies and gets a good match:
Quote:19:33:29 T:3060431728 M:1842192384 DEBUG: FileCurl::Open(0x9d4ed10) http://api.themoviedb.org/2.1/Movie.sear...pocahontas
<snip>
19:33:30 T:3060431728 M:1841676288 DEBUG: scraper: GetSearchResults returned <results><entity><title>Pocahontas</title><id>10530</id><url cache="tmdb-10530.xml">http://api.themoviedb.org/2.1/Movie.getInfo/en/xml/57983e31fb435df4df77afb854740ea9/10530</url></entity><entity><title>Pocahontas II: Journey to a New World</title><id>13761</id><url cache="tmdb-13761.xml">http://api.themoviedb.org/2.1/Movie.getInfo/en/xml/57983e31fb435df4df77afb854740ea9/13761</url></entity></result>

3) Using the tmdb id from above XBMC does a movie.getInfo:
Quote:19:33:30 T:3060431728 M:1841676288 DEBUG: FileCurl::Open(0x9d4ed10) http://api.themoviedb.org/2.1/Movie.getI...0ea9/10530

4) Detailed results are returned by tmdb which look correct:
Quote:19:33:30 T:3060431728 M:1841455104 DEBUG: scraper: GetDetails returned <details><title>Pocahontas</title><year>
<snip>

5) Now things look a bit wrong. The calls to movie.getImages are no longer using the tmdb movie id of 10530 but the imdb id of tt1119154, which obviously the tmdb api doesn't recognise:
Quote:19:33:30 T:3060431728 M:1841455104 DEBUG: scraper: GetTMDBThumbsById returned <details><url function="GetTMDBThumbs" cache="tmdb-images-tt1119154.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/tt1119154</url></details>
FileCurl::Open(0x9d4ed10) http://api.themoviedb.org/2.1/Movie.getI.../tt1119154
19:33:31 T:3060431728 M:1841455104 DEBUG: FileCurl::Close(0x9d4ed10) http://api.themoviedb.org/2.1/Movie.getI.../tt1119154
19:33:31 T:3060431728 M:1841455104 DEBUG: scraper: GetTMDBThumbs returned <details></details>
19:33:31 T:3060431728 M:1841455104 DEBUG: scraper: GetTMDBFanartById returned <details><url function="GetTMDBFanart" cache="tmdb-images-tt1119154.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/tt1119154</url></details>
19:33:31 T:3060431728 M:1841455104 DEBUG: scraper: GetTMDBFanart returned
19:33:31 T:3060431728 M:1841455104 ERROR: InternalGetDetails: Unable to parse web site [http://api.themoviedb.org/2.1/Movie.getI...tt1119154]
19:33:31 T:3060431728 M:1841455104 DEBUG

Is my rough analysis correct or am I doing something wrong?

NOTE:
I'm running XBMC 9.11 Beta1 + (r24985 of scrapers/video/common/tmdb.xml)
Cleared my database beforehand (rm .xbmc/userdata/Databases/*.db).

Thanks,
Chris
Reply
#2
You should probably pastebin your full log.
42.7% of all statistics are made up on the spot

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.
Reply
#3
Here you go:
http://pastebin.com/m15c725dd
Reply
#4
Basically you're right. The new tmdb 2.1 API supports both, the tmdb and the imdb id. For some reason one of the returned fanarts contains a wrong imdb id which was matched by the regular expression and made the image lookup fail.

Thanks for heads up and the good analysis of the Problem! Issue should be fixed in SVN r25432.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#5
I can confirm r25432 fixes the issue for me. Thanks for the quick response Nod
Reply

Logout Mark Read Team Forum Stats Members Help
TMDB scraper using imdb tt indexes in Movie.getImages call0