Search found 3 matches

by GFOLehran
19 Jul 2020, 17:10
Forum: Scripting and Automation
Topic: [HELP] Format chain fails
Replies: 6
Views: 2918

Re: [HELP] Format chain fails

{(audio.size() > 2 ? 'Multi' : audio.size() > 1 ? 'Dual' : any{audio.language[0].replaceFirst(/es|spa|sp/, 'Spa').replaceFirst(/eng|en/, 'Eng').replaceFirst(/jp|ja/, 'Jap')}{'UNKNOWN'}) + ' - '} Many thanks, i change UNKNOWN to Jap beause this chain is for anime. I am seeing that the fansub group i...
by GFOLehran
19 Jul 2020, 14:52
Forum: Scripting and Automation
Topic: [HELP] Format chain fails
Replies: 6
Views: 2918

Re: [HELP] Format chain fails

Many thanks both @kim and @rednoah. Now im working to put a little workaround, many files dont have audio language defined, so im tryint to put a default text if this happend.
by GFOLehran
17 Jul 2020, 09:41
Forum: Scripting and Automation
Topic: [HELP] Format chain fails
Replies: 6
Views: 2918

[HELP] Format chain fails

Hello, I am trying to make a string to rename my files, this is what I have for now: {' '+any{certification}{imdb.certification}.replaceAll(/^\d+$/, 'PG-$0')}/{genre}/{audio.size() > 2 ? 'Multi' : audio.size() > 1 ? 'Dual' : audio.language[0].replace('es', 'Spa') : audio.language[0].replace('spa', '...