Yes this will work if i put only movie inside of this folder.
So i guess i need to force it to manage my existing movies folder.
I'll do that for them. Thanks.
But the advantage of using amc was to manage my download and move them on the correct folder depending on his type (Anime, movie, series). I expect to get a better detection if imdb id is present.
If i try a query from
http://www.omdbapi.com/ with the imdb id, i get this response
Code: Select all
{
"Title":"Angels & Demons",
"Year":"2009",
"Rated":"PG-13",
"Released":"15 May 2009",
"Runtime":"138 min",
"Genre":"Mystery, Thriller",
"Director":"Ron Howard",
"Writer":"David Koepp (screenplay), Akiva Goldsman (screenplay), Dan Brown (novel)",
"Actors":"Tom Hanks, Ewan McGregor, Ayelet Zurer, Stellan Skarsgård",
"Plot":"Harvard symbologist Robert Langdon works to solve a murder and prevent a terrorist act against the Vatican.",
"Language":"English, Italian, Latin, French, Swiss German, German, Chinese",
"Country":"USA, Italy",
"Awards":"1 win & 5 nominations.",
"Poster":"http://ia.media-imdb.com/images/M/MV5BMjEzNzM2MjgxMF5BMl5BanBnXkFtZTcwNTQ1MTM0Mg@@._V1_SX300.jpg",
"Metascore":"48",
"imdbRating":"6.7",
"imdbVotes":"200,301",
"imdbID":"tt0808151",
"Type":"movie",
"Response":"True"
}
We can see than we have a type "movie'. So we may add a validation of the file type in the code at
https://github.com/svn2github/filebot/b ... .java#L600 like this
Code: Select all
if (movie != null && movie.type == 'movie' ) {
options.add(movie);
}
Maybe it's better to add validation here
https://github.com/svn2github/filebot/b ... .java#L140
Code: Select all
MovieInfo info = getMovieInfo(id, locale, false);
if (info != null && info.type == 'movie' ) {
String name = info.getName();
String[] aliasNames = info.getOriginalName() == null || info.getOriginalName().isEmpty() || info.getOriginalName().equals(name) ? new String[0] : new String[] { info.getOriginalName() };
int year = info.getReleased() != null ? info.getReleased().getYear() : id.getYear();
int tmdbid = info.getId();
int imdbid = info.getImdbId() != null ? info.getImdbId() : -1;
return new Movie(name, aliasNames, year, imdbid, tmdbid, locale);
}
So we won't get a movie proposition for a tv file.
To avoid than we don't get a tv proposition for a movie.
If a imdb id is present, we should not try others detection if thetvdb returns empty data.
http://thetvdb.com/api/GetSeriesByRemot ... =tt0988824
vs
http://thetvdb.com/api/GetSeriesByRemot ... =tt0808151
This project is amazing ! I love the concept and how it's made too !
Needs just some tweaks for detection
