Update of movie.nfo data/info

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Update of movie.nfo data/info

Post by kim »

CLI: Using AMC script in strict mode:

What do filebot read from movie.nfo or moviename.nfo in order to re-scrape the same movie as in the imdb/tmdb id (with or without "ignore already processed folders" enabled) ?

Can i force it to update (add/remove/replace) all in movie.nfo ?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Update of movie.nfo data/info

Post by rednoah »

FileBot only reads the TheMovieDB ID or IMDb ID from nfo files to help with movie identification.

The artwork.* scripts create artwork and nfo files. There is no way to update/replace nfo files (although writing a script for that shouldn't be too hard).
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Update of movie.nfo data/info

Post by kim »

Is AMC script in NON-strict mode the same ?

I think its best to have the AMC script do it all, but if you think it will be best/easiest to use the artwork.* scripts ?

how will you go about writing the code, samples/hints pls ?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Update of movie.nfo data/info

Post by rednoah »

1.
-non-strict does make a difference.

2.
The artwork scripts will only work on already well-organized files.

3.
The artwork scripts can serve as a reference if you want to generate artwork/nfo files. The existing scripts will ignore folders that already contain artwork/nfo so just disabling that check in the code might allow you to regenerate all nfo files.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Update of movie.nfo data/info

Post by kim »

As I see it I need to know how to get only 1 result, by doing a search NOT for the name and/or year BUT for the IMDBid and/or TMDBid taken from the existing movie.nfo file...

I need help with something like this:
look for movie.nfo/moviename.nfo file(s)
find IMDBid and/or TMDBid
do a online lookup search using IMDBid and/or TMDBid (this should only get 1 result)
get all new data/info (movie.nfo)
get missing fanart/poster or if better

I guess maybe:
options = lookup by IMDBid

In the artwork scripts where do i need to write the code, here ?

Code: Select all

	if (query) {
		// manual search & sort by relevance
		options = TheMovieDB.searchMovie(query, _args.locale).sortBySimilarity(query, { it.name })

	} else if (videos?.size() > 0) {
		// run movie auto-detection for video files
		options = MediaDetection.detectMovie(videos[0], TheMovieDB, _args.locale, true)
the important thing with all this is that it most be "headless" and 100% right all the time
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Update of movie.nfo data/info

Post by rednoah »

If there is xattr metadata, or a sibling nfo file, or simply well-named files, then you can assume that you'll get 100% correct results:

Code: Select all

options = MediaDetection.detectMovie(videos[0], TheMovieDB, _args.locale, true)
@see https://github.com/svn2github/filebot/b ... .java#L562
:idea: Please read the FAQ and How to Request Help.
Post Reply