Page 1 of 1

Include nfo file for movies but not for tv-shows

Posted: 26 Aug 2014, 13:23
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.

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

Posted: 19 Jan 2015, 16:46
by SuperDOS
BUMP

This is still something I'd like to achieve, save the NFO for movies but skip them for TV-show.

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

Posted: 19 Jan 2015, 17:09
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.

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

Posted: 19 Jan 2015, 21:40
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.