Rename movies with audio collet group by type

All about user-defined episode / movie / file name format expressions
Post Reply
eLriK
Posts: 2
Joined: 02 Apr 2018, 12:15

Rename movies with audio collet group by type

Post by eLriK »

Hello, first of all I want to say that I love this program, that's why I decided to participate in the payment for the support in linux.

I'm trying without luck to rename the audios grouped by type and then language.

Something similar to this:
16 Streets (2006) [1080p] [DTS.5.1ch.es.AC3.5.1ch.ca.en] .mkv
60 segundos (2000) [1080p][DTS-HD.7.1ch.es.AC3.5.1ch.en.es].mkv
A todo gas 2 (2003) [1080p][Atmos.7.1ch.es.DTS.5.1ch.en].mkv

Someone could help me, I am very lost in this aspect.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename movies with audio collet group by type

Post by rednoah »

You can use a custom format for that:
https://www.filebot.net/naming.html

If you need any kind of information that is not provided by the top-level bindings, then you can access any MediaInfo field directly:
viewtopic.php?f=5&t=4285

You might find some interesting examples to get you started here:
viewtopic.php?f=5&t=2


:idea: Make sure to use the GUI when prototyping custom formats, especially if you're new to custom formats.
:idea: Please read the FAQ and How to Request Help.
eLriK
Posts: 2
Joined: 02 Apr 2018, 12:15

Re: Rename movies with audio collet group by type

Post by eLriK »

Thanks for reply rednoah

I made works with this code:

Code: Select all

{audio.groupBy{ it.Format }.collect{ c, a -> [c] + a*.Language }.flatten().join('.')}
But in case of dts-hd by example always print only dts

Can you help me please?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename movies with audio collet group by type

Post by rednoah »

Please provide a sample file or the MediaInfo table, so I can test things myself:
viewtopic.php?f=5&t=4285
:idea: Please read the FAQ and How to Request Help.
Post Reply