trailers and .nfo & .watched files

Any questions? Need some help?
Post Reply
User avatar
HtRabbit
Donor
Posts: 13
Joined: 09 Apr 2014, 01:18

trailers and .nfo & .watched files

Post 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
There is no Gravity...HST sucks!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: trailers and .nfo & .watched files

Post 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)$/)}
:idea: Please read the FAQ and How to Request Help.
User avatar
HtRabbit
Donor
Posts: 13
Joined: 09 Apr 2014, 01:18

Re: trailers and .nfo & .watched files

Post 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)$/)}
There is no Gravity...HST sucks!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: trailers and .nfo & .watched files

Post 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 ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply