Help in my preferences Please!

Any questions? Need some help?
Post Reply
mx24
Posts: 2
Joined: 16 Jul 2014, 18:05

Help in my preferences Please!

Post by mx24 »

Dear friends, I wanted to comment on an issue that I have on the ability to use constraints on the preferences of this wonderful program for many years, I've used this structure to store my movies:

Broken Flowers [2005][BluRay 1280x720p][x264][AC3][Dual + Sub]

And I edited my preferences as:

{n} [{y}] {"[$ source"} {"$ resolution]"} {"[$ vc]"} {"[$ c]"}

I returned something like this:

Broken Flowers [2005][BluRay 1280x720][x264][AC3]

The problem is that there are options as to condition, DUAL me to write, if it detects more than one track audios.languaje, and moreover, that type when it detects that SUB Subtitles in mkv.

Also, do not be like me to add the "p" after resolution.

Regards and sorry for my English of google!
mx24
Posts: 2
Joined: 16 Jul 2014, 18:05

Re: Help in my preferences Please!

Post by mx24 »

Update:

Code: Select all

{n} [{y}][{"$source"} {"$resolution"}{"p]"}{"[$vc]"}{"["}{def a= [];"[$media.Audio_Codec_List]".contains("DTS") ? a.add("DTS") : "";"[$media.Audio_Codec_List]".contains("AC3") ? a.add("AC3") : "";"[$media.Audio_Codec_List]".contains("MPEG-1 Audio layer 3") ? a.add("MP3") : "";a.join("+")}{"]"}{(audios.size()) > 1 ? (text.toString() != "[]") ? "[Dual+Sub]" : "[Dual]" : ""}
Post Reply