Page 1 of 1

trailers and .nfo & .watched files

Posted: 09 Apr 2014, 01:41
by HtRabbit
I am currently using the GUI v4.0 on windoze
for my movies i use

Code: Select all

t:\new\Movies\{n =~ /^(?i)[a-z]/ ? n.replaceAll('The ','').getAt(0) : '0-9'}\{n} [{y}]\{n} [{y}] [ID IMDB tt{imdb.imdbid}]{fn.contains('trl') || fn.contains('trailer') ? '.'+'[Trailer-IMDB]':""}{" CD$pi"}
if i have a file with trailer in the title it is being ignored. so i have to rename it with trl so it can be scraped ad put in the folder with the movie.

i am using a popcorn hour with YAMJ for my jukebox and would like to exclude the nfo files as they interfere with yamj

as for the .watched files, when i use the GUI to rename a existing folder it renames the watched file incorrectly.
eg
Bad Teacher [2011].mkv.watched
becomes
Bad Teacher [2011].watched

Re: trailers and .nfo & .watched files

Posted: 09 Apr 2014, 07:21
by rednoah
1.
Just don't drag them in, and they won't be renamed. You can use *.avi or some sort of filter to drag in multiple files from multiple folders.

2.
You'll have to account for extra extensions in the format:

Code: Select all

{if (ext =~ /watched/) fn.match(/\.(avi|mkv)$/)}

Re: trailers and .nfo & .watched files

Posted: 09 Apr 2014, 13:45
by HtRabbit
rednoah wrote:1.
Just don't drag them in, and they won't be renamed. You can use *.avi or some sort of filter to drag in multiple files from multiple folders.

2.
You'll have to account for extra extensions in the format:

Code: Select all

{if (ext =~ /watched/) fn.match(/\.(avi|mkv)$/)}

1. but i do want them renamed so i end up with
Breakfast at Tiffany's [1961] [ID IMDB tt54698].mkv
Breakfast at Tiffany's [1961] [ID IMDB tt54698].[Trailer-IMDB].mp4
in the folder.

2.so the code should be?

Code: Select all

t:\new\Movies\{n =~ /^(?i)[a-z]/ ? n.replaceAll('The ','').getAt(0) : '0-9'}\{n} [{y}]\{n} [{y}] [ID IMDB tt{imdb.imdbid}]{fn.contains('trl') || fn.contains('trailer') ? '.'+'[Trailer-IMDB]':""}{" CD$pi"}{if (ext =~ /watched/) fn.match(/\.(avi|mkv|mp4)$/)}

Re: trailers and .nfo & .watched files

Posted: 09 Apr 2014, 14:48
by rednoah
1.
Normally trailers are completely ignored, but if you get the trailer past matching, then the rest you can do in the format. See #2

2.
Play with it in the Format Editor ;)