Include nfo file for movies but not for tv-shows

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
SuperDOS
Posts: 33
Joined: 20 Mar 2013, 23:34

Include nfo file for movies but not for tv-shows

Post by SuperDOS »

Hi,

I'm trying to modify amc.groovy so that it will keep the original nfo-file for movies but not for tv-shows.
I've succeded to include the nfo file by adding f.hasExtension('nfo') as inputfile, but how can I get it to ignore for tv-shows?

tried to add

Code: Select all

if (forceSeries) {
input = input.findAll{ f -> !f.hasExtension('nfo')}
}
but made it always exclude nfo-files.

thanks.
SuperDOS
Posts: 33
Joined: 20 Mar 2013, 23:34

Re: Include nfo file for movies but not for tv-shows

Post by SuperDOS »

BUMP

This is still something I'd like to achieve, save the NFO for movies but skip them for TV-show.
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Include nfo file for movies but not for tv-shows

Post by rednoah »

I don't think *.nfo files are included one way or another, since the amc script will generate them anyway if required.

I suppose you could try including *.nfo files in the beginning when files are selected, then then exclude *.nfo just before the TV show specific rename call.
:idea: Please read the FAQ and How to Request Help.
SuperDOS
Posts: 33
Joined: 20 Mar 2013, 23:34

Re: Include nfo file for movies but not for tv-shows

Post by SuperDOS »

Correct.

I've added:
// process only media files
input = input.findAll{ f -> (f.isVideo() && !tryQuietly{ f.hasExtension('iso') && !f.isDisk() }) || f.isSubtitle() || f.hasExtension('nfo') || (f.isDirectory() && f.isDisk()) || (music && f.isAudio()) }

But need to add an exclude for tv-show.
hmm.
Post Reply