Page 1 of 1

IMDB Database

Posted: 29 May 2023, 09:24
by enzoi7372
First of all i should mention that I've searched the whole forum for this and haven't find a solution so i figured to ask.
Is there any way to get more than 3 actors or genres from IMDB? tryed different things and none seem to work.
For example when i use this

Code: Select all

{omdb.cast.name.take(4).join(', ')}
it only returns 3 actor names, same goes for genres.
I know it can be done with TMDB database but thats a litle different i prefer having IMDB information.

Re: IMDB Database

Posted: 29 May 2023, 09:32
by rednoah
Looks like OMDb API indeed only returns 3 actors. Well, that's that.


:idea: Note that FileBot does not use IMDB, and cannot use IMDB as per IMDB Terms of Service.


:?: Why not use TheMovieDB information? You can always contribute to TheMovieDB if something is still missing.

Re: IMDB Database

Posted: 29 May 2023, 09:51
by enzoi7372
Thank you for the answer boss
Well actually im currently using TheMovieDB the problem is some genres are missing like "musical" and "sport".
I was wondering if it is possible to combine data from OMDB and TheMovieDB for example take the 3 main genres form OMDB API then get genres from TheMovieDB and remove the duplicates.
That seems to be a little tricky but in theory it could be possible.

Re: IMDB Database

Posted: 29 May 2023, 10:00
by rednoah
I'd start by adding the missing genres to TheMovieDB.


You can of course combine the results of different bindings:

Code: Select all

{
	(omdb.genres + genres).unique().take(5)
}
But you will find it hard to deduplicate "similar but not the same" genres:

Code: Select all

[Adventure, Drama, Sci-Fi, Action & Adventure, Sci-Fi & Fantasy]