•   
  • 1
  • 11
  • 12
  • 13(current)
  • 14
  • 15
  • 18
  •   
TMDB Movie Scraper not working
At some point we should consider adding the TMDB ID to the meta data for a movie/TV show and allow those to be manually entered. If you have a file that has known issues in multiple scrapers it would make the query strings much easier.
Thinking of something similar to what "TheRenamer" does where you have an option to update the database for a given search to include the TVDB unique ID. Both TMDB and Universe have unique ID's for movies.

Just thinking outloud. Thanks for all your hard work!
Reply
Logs show the following with 3.8.6

Example refreshing "1408 (2007).mkv"

Code:
21:12:27 T:3912   DEBUG: CScraperUrl::Get: Using "UTF-8" charset for "http://api.tmdb.org/3/search/movie?api_key=XXX&query=1408&year=2007&language=en"
...
21:12:27 T:3912   DEBUG: scraper: GetSearchResults returned <results><entity><title>1408</title><id>3021</id><year>2007</year><url cache="tmdb-en-2007.json">http://api.tmdb.org/3/movie/2007?api_key=XXX&amp;language=en</url></entity><entity><title>1408</title><id>3021</id><year>2007</year><url cache="tmdb-en-2007.json">http://api.tmdb.org/3/movie/2007?api_key=XXX&amp;language=en</url></entity></results>
...
21:12:30 T:11712   DEBUG: CGUIWindowVideoBase::ShowIMDB: user selected movie '1408 (2007)' with URL 'http://api.tmdb.org/3/movie/2007?api_key=57983e31fb435df4df77afb854740ea9&language=en'

So basically instead of the movie id it queries the movie with the ID 2007 in this example. And all the IDs in that 2000-2020 range are from the year 2007. That explains why ppl. see the year 2007, because only movies from 2007 like in this ID range.

It should have taken "3021" as the ID and not the year "2007".

So the the problem lies in GetSearchResults.

Given that the change was the order of items, the regexp has been updated, but not the reference in the URL to the new position of the ID. It sill uses 1, which of course now with the new order is the year.

Let's take a look at the current code, and yes, release date is at the 1st position and ID at the 2nd, but the URLs are still constructed with $1 instead of $2.

url cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.tmdb.org/3/movie/\1?api_key=

So replacing the 1 with a 2 in the three URL constructions in the GetSearchResults section, we should have a fix.

Quick test on my end shows that this seems to work and now uses the ID istead of the release date.
Code:
22:22:19 T:21452   DEBUG: CScraperUrl::Get: Using "UTF-8" charset for "http://api.tmdb.org/3/search/movie?api_key=XXX&query=1408&year=2007&language=en"
...
22:22:19 T:21452   DEBUG: scraper: GetSearchResults returned <results><entity><title>1408</title><id>3021</id><year>2007</year><url cache="tmdb-en-3021.json">http://api.tmdb.org/3/movie/3021?api_key=XXX&amp;language=en</url></entity><entity><title>1408</title><id>3021</id><year>2007</year><url cache="tmdb-en-3021.json">http://api.tmdb.org/3/movie/3021?api_key=XXX&amp;language=en</url></entity></results>
...
22:22:20 T:21396   DEBUG: CGUIWindowVideoBase::ShowIMDB: user selected movie '1408 (2007)' with URL 'http://api.tmdb.org/3/movie/3021?api_key=XXX&language=en'

Can some one try this fix and confirm it works for other as well?

So the devs can release a 3.8.7 as the 3.8.6 fix doesn't work properly, in case my assumptions (1st look at a scraper ever) is correct.
Reply
THX a lot guys for the quick help!
Now all works fine again :-)
Reply
@Scythe42 - Bingo! You are completely right. Seems like I was too tired 4am my time when I was applying the fix.

Sorry about that to ALL!

v3.8.7 is in the repo. Will take a couple of hours until it hits the mirrors, then another couple of hours until your Kodi auto-update will pick it up (you should be able to force update once the scraper is up on the mirrors though).
Reply
Thanks !! Was driving me nuts last night and this morning Smile
Reply
Smile 
@Scythe42 - Thank you. It works!! Big Grin
Reply
I have problem... 3.8.6 scrap wrong movies. I have updated 3.8.7 and re scrapping, right movie now but plot are showing in english and in french. Not only french. see below :

Image Image
 Estuary MOD V2 
Reply
Where can I donwload the 3.8.7. version?

Don't appears in my Kodi, and in the Kodi web, only appears 3.8.6

Thank you
Reply
(2015-11-14, 17:47)Bitter Wrote: Where can I donwload the 3.8.7. version?

Don't appears in my Kodi, and in the Kodi web, only appears 3.8.6

Thank you

As olympia said, the addon is in the repo and is beeing pushed to the mirrors atm. It'll soon be available via auto-update
Reply
I have 3.8.7 and it's still not scraping properly. It acts as though it can't connect to the web, which is the same behavior I was seeing with 3.8.5.

Is anyone else still having problems?
Reply
My machines auto updated today. Appears to be working fine.
Reply
thanks for the quick fix.
the inconvenience was somewhat trivial as i simply switched to the universal movie scraper for the few flicks acquired during the "outage"
oh.. i frikkin love xbmc! a goddamn work of art!
Reply
Just updated to 3.8.7 and it works perfectly. Great work, thank you everyone!
Reply
(2015-11-14, 18:27)tievolu Wrote: I have 3.8.7 and it's still not scraping properly. It acts as though it can't connect to the web, which is the same behavior I was seeing with 3.8.5.

Is anyone else still having problems?
Well a debug log may help, but perhaps the tmdb site may be getting hammered.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
Hi! I'm a newbie.
I still using XBMC 12.2 (Raspbmc) It's very OLD, I now I now Confused
Until yesterday my TheMovieDB Addon 3.7.12 works great, but not anymore.

My TheMovieDB addon don't autoupdate anymore and the option to Manual Update is grayed.

I could manually download and update my addon (any help welcome to the address of the zip file to install manually)

..but my question is:
Is this new version 3.8.7 still compatible with XBMC 12.2?

Thanks in advance.
Reply
  •   
  • 1
  • 11
  • 12
  • 13(current)
  • 14
  • 15
  • 18
  •   



Logout Mark Read Team Forum Stats Members Help
TMDB Movie Scraper not working5
This forum uses Lukasz Tkacz MyBB addons.