Search found 6 matches

by ErAzOr
01 Sep 2016, 17:19
Forum: Help and Support
Topic: Audio Codec for specified Audio Language?
Replies: 1
Views: 1869

Audio Codec for specified Audio Language?

Hi,

is it possible to only return Audio Codec from specified Audio Language?

For example like:

If audio.language = 'de' then return audio.codec

Hope someone has an solution :)

Thank you
by ErAzOr
29 Jun 2014, 15:58
Forum: Episode / Movie Naming Scheme
Topic: Problem with non existing Tags
Replies: 8
Views: 6387

Re: Problem with non existing Tags

You broke the expression. Here I fixed it: {audios.collect{ a -> allOf{[any{a.CodecIDHint}{a.Codec}, a.Channels+'ch']}{a.Language} }.findAll{ it[1] }.groupBy{ it[0] }.collect{ k, v -> k + v*.get(1) }.flatten().join('.') } See how the groupBy key is a Array of Codec/Channels. :ugeek: That's it. Than...
by ErAzOr
29 Jun 2014, 15:22
Forum: Episode / Movie Naming Scheme
Topic: Problem with non existing Tags
Replies: 8
Views: 6387

Re: Problem with non existing Tags

any{a.CodecIDHint}{a.Codec} I tried this: {audios.collect{ a -> allOf{any{a.CodecIDHint}{a.Codec}}{a.Language} }.findAll{ it[1] }.groupBy{ it[0] }.collect{ k, v -> k + v*.get(1) }.flatten().join('.') } but get no value (just blank). I also tried: {audios.collect{ a -> allOf{[{if (a.CodecIDHint != n...
by ErAzOr
29 Jun 2014, 12:03
Forum: Episode / Movie Naming Scheme
Topic: Problem with non existing Tags
Replies: 8
Views: 6387

Re: Problem with non existing Tags

This is how I'd write that: {audios.collect{ a -> allOf{[a.codec, a.channels+'ch']}{a.Language} }.findAll{ it[1] }.groupBy{ it[0] }.collect{ k, v -> k + v*.get(1) }.flatten().join('.') } If you use a binding that is undefined/null/etc it'll cause an Exception to be thrown. So you can catch that wit...
by ErAzOr
29 Jun 2014, 11:12
Forum: Episode / Movie Naming Scheme
Topic: Problem with non existing Tags
Replies: 8
Views: 6387

Re: Problem with non existing Tags

Wow thank you very much! Works like charm :D
by ErAzOr
29 Jun 2014, 09:47
Forum: Episode / Movie Naming Scheme
Topic: Problem with non existing Tags
Replies: 8
Views: 6387

Problem with non existing Tags

Hi, I'd like to read out all Audio Informations, which is working great with most of my files. This is my scheme: {'.' + audios.groupBy{ it.Codec + '.' + it.Channels.replaceAll(/[' ']/, "-") + 'ch' }.collect{ c, a -> [c] + a*.Language }.flatten().join('.')} The problem is, if files doesn't...