Search found 9 matches

by carloscape
20 Jul 2022, 20:22
Forum: Episode / Movie Naming Scheme
Topic: Need to make an exception when there are 2 or more spanish audio tracks
Replies: 6
Views: 2411

Re: Need to make an exception when there are 2 or more spanish audio tracks

Not sure how to apply that solution, to an existing movie file. I added that line to replace the one I had (with replace changing a to x) and it didn't seem to work. {n}{def x = audio.language.findResults{ it.toLocale() }.join(' '); x.join(' ').replaceFirst(/es/, 'es-419').replaceAll(/es ...
by carloscape
20 Jul 2022, 15:18
Forum: Episode / Movie Naming Scheme
Topic: Need to make an exception when there are 2 or more spanish audio tracks
Replies: 6
Views: 2411

Re: Need to make an exception when there are 2 or more spanish audio tracks

That wouldn't work, because I wouldn't be able to use unique. So I could get results like en en en en en en es-419 es es es. Also, I would like the second es to become es-es. Is there a replaceSecond? Would it work if I added unique?
by carloscape
18 Jul 2022, 23:52
Forum: Episode / Movie Naming Scheme
Topic: Need to make an exception when there are 2 or more spanish audio tracks
Replies: 6
Views: 2411

Need to make an exception when there are 2 or more spanish audio tracks

This works quite well for simple cases: {def x = audio.language.findResults{ it.toLocale() }.unique().join(' '); x.replaceAll('es', 'es-419'); if (x) "audio $x"} It will basically show a language once, and presents the Spanish audio (when available) as es-419 (stands for Spanish Latin america ...
by carloscape
03 Jul 2020, 20:18
Forum: Episode / Movie Naming Scheme
Topic: Info.original language doesn't seem to work for series
Replies: 7
Views: 4057

Re: Info.original language doesn't seem to work for series

Tested with the beta, and the results are promising.

Code: Select all

Siempre Bruja (2019)/S01/Siempre Bruja - S01E02 - A University Witch
Which variable would I need to use to get the episode name in Spanish ?
by carloscape
03 Jul 2020, 07:23
Forum: Episode / Movie Naming Scheme
Topic: Info.original language doesn't seem to work for series
Replies: 7
Views: 4057

Re: Info.original language doesn't seem to work for series

I'm using tmdb as the database of choice for both movies and series.
by carloscape
03 Jul 2020, 06:53
Forum: Episode / Movie Naming Scheme
Topic: Info.original language doesn't seem to work for series
Replies: 7
Views: 4057

Info.original language doesn't seem to work for series

After reading the forums I managed to make a working expression for renaming movies: {collection.colon(' - ')+'/'}{ (info.OriginalLanguage ==~ /es/) ? primarytitle.colon(' - ') : n.colon(' - ')} ({y})/{ (info.OriginalLanguage ==~ /es/) ? primarytitle.colon(' - ') : n.colon(' - ')} ({y}) {vc.replace ...