Rename movies with audio collet group by type

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

Rename movies with audio collet group by type

Post by eLriK » 02 Apr 2018, 12:23

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: 13407
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename movies with audio collet group by type

Post by rednoah » 03 Apr 2018, 01:42

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.
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

: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 » 04 Apr 2018, 14:11

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: 13407
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename movies with audio collet group by type

Post by rednoah » 05 Apr 2018, 07:56

Please provide a sample file or the MediaInfo table, so I can test things myself:
viewtopic.php?f=5&t=4285
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests