AMC script use IMDB instead of TMDB

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
mrchief
Posts: 4
Joined: 02 May 2014, 00:35

AMC script use IMDB instead of TMDB

Post by mrchief »

How do I modify the AMC script to switch to IMDB instead of TMDB? I tried modifying the scripts manually by replace every instance of "TheMovieDb." to "IMDb." (same case as shown here).

It still pulls the info out of tmdb (I know this cause rating is different in IMDB vs. TMDB) and I get this error during the script's processing:
MissingMethodException: No signature of method: net.sourceforge.filebot.web.IMDbClient.getMovieInfo() is applicable for argument types: (net.sourceforge.filebot.web.Movie, jav
a.util.Locale) values: [Hasee Toh Phasee (2014), en]
I'm a complete noob with groovy and filebot. I tried searching this forum but couldn't find any info related to this specific scenario.

Any help is greatly appreciated!
Last edited by mrchief on 03 May 2014, 04:51, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC script use IMDB instead of TMDB

Post by rednoah »

That has nothing to do with the script. It's all in the format, and the format always uses TheTVDB to pull extra info.

You can use the {imdb} binding though, like {imdb.rating} though that is unofficial and may or may not work.
:idea: Please read the FAQ and How to Request Help.
mrchief
Posts: 4
Joined: 02 May 2014, 00:35

Re: AMC script use IMDB instead of TMDB

Post by mrchief »

rednoah wrote:That has nothing to do with the script. It's all in the format, and the format always uses TheTVDB to pull extra info.

You can use the {imdb} binding though, like {imdb.rating} though that is unofficial and may or may not work.
You mean TMDB and not TVDB, right?

Also I tried last night with {imdb.rating} but that also brought the TMDB ratings, not IMDB. The problem with TMDB is that its the poorer cousin of IMDB. IMDB has more movies cataloged.
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC script use IMDB instead of TMDB

Post by rednoah »

TMDB provides an API. IMDB doesn't.
:idea: Please read the FAQ and How to Request Help.
mrchief
Posts: 4
Joined: 02 May 2014, 00:35

Re: AMC script use IMDB instead of TMDB

Post by mrchief »

I thought it did (I was thinking OMBD API) but then, I'm no expert.

None of these are viable? http://stackoverflow.com/questions/1966 ... ide-an-api

Also, I wonder how programs like Media Center Master search IMDB then.
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC script use IMDB instead of TMDB

Post by rednoah »

OMDB (former IMDBAPI until they got sued by IMDB) scrapes IMDB and then gives you an API for that. IMDB is not open with their data, so everyone is just scraping the html. Or using services that scrape the html.

The {imdb} does give you the OMDB data if you haven't noticed. That's documented clearly:
http://www.filebot.net/naming.html

There's really no reason to use IMDB anymore nowadays, but they still got critical mass so I hope I can do my part in the demise of IMDB.
:idea: Please read the FAQ and How to Request Help.
mrchief
Posts: 4
Joined: 02 May 2014, 00:35

Re: AMC script use IMDB instead of TMDB

Post by mrchief »

I understand your point. But its not just critical mass, they do have better data, especially for foreign language films (I'm talking Bollywood here). Their API is costly and they are targeting high end consumers but IMHO, if you can, then do not be biased towards any provider. A tool should not have an opinion and its harder for opinionated tools to reach critical mass ;)
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC script use IMDB instead of TMDB

Post by rednoah »

All HTPC software uses TheMovieDB and TheTVDB by now because they give us developers the interfaces we need, thank good the times of people have no choice but scrape IMDB are over, and the software world is better for it.

FileBot doesn't download anything, therefore it can never reach critical mass quite like related tools can. Actually the more opinionated I am the more smooth things will go. Forcing everybody to use the same database and not worry about which datasource might be the best.

In this case I'll just be opinionated and tell you to add the missing data to TheMovieDB, for the benefit of all people using TheMovieDB. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply