Page 1 of 1

File Naming and/or Conditional Overwrite Options?

Posted: 05 Aug 2016, 18:35
by dingerjunkie
Hello All.

Working with renaming/migration of files from a VortexBox to a KODI Server. I've run into a file scenario that I'm not fully set on how to handle, and I'm hoping someone here may have skinned this cat previously.

Relying upon amc.groovy for controlling the renaming process.

Imported a 2-D version of a file from one BluRay disc...everything was just fine. Then started importing the 3-D version from a separate disc. AMC processed it, since the new disc name (included "3D" in the name) was not in the excludes file.

My thought was, since the volume label and movie file name were different, Filebot would name the file differently, or somehow identify the different resolution/encoding, so that I'd end up with two different copies of the movie on the KODI system. Unfortunately, the 2-D version was overwritten by the 3-D version.

Is there a flag/setting/properties-combination that I can apply to the execution of filebot, or to the amc.groovy script, to not overwrite in the event of differing resolutions or encoding? I can see this being an issue in the future as well, when I wish to have a 1080 copy of a given film for "standard" screens and a native-4K copy saved separately for screens that can handle the content.

In the event of ripping a different version of the same movie (e.g.: new/remastered version of a film, such as a director's cut or extended edition), I'd want the newer/longer/larger file to overwrite the original, as currently happens...so this would need to be some specific, conditional logic.

Any thoughts would be welcome.

Re: File Naming and/or Conditional Overwrite Options?

Posted: 05 Aug 2016, 18:53
by rednoah
1.
The amc default formats do not include any mediainfo in the path, so if you have the same movie/episode twice, only one will be kept according to your desired --conflict behaviour (skip by default).

If you use --conflict auto then FileBot will keep the better / longer / larger one.


2.
You can pass in your own format to give each file it's own unique path. Adding lots of mediainfo to the plex standard path should do the trick.

Format:

Code: Select all

{plex} {vf} {vc} {ac} {s3d} {tags}
Example Output:

Code: Select all

Anime/Suzuka/Suzuka - 26 - Cool Wind 480p x264 AC3
:idea: Use the FileBot Format Editor (GUI) to prototype your own naming scheme.