[SOLVED] Filebot rename with multiple languages subtitles

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
kodiuser
Posts: 13
Joined: 08 Jan 2018, 01:38

[SOLVED] Filebot rename with multiple languages subtitles

Post by kodiuser »

Code: Select all

/mnt/HD/Movies/Blade Runner 2049 (2017)# filebot -rename -non-strict --db themoviedb "$(pwd)"
I get:

Code: Select all

Rename movies using [TheMovieDB]
Auto-detect movie from context: [/mnt/HD/Movies/Blade Runner 2049 (2017)/Blade.Runner.2049.2017.1080p.BluRay.H264.AAC-RARBG.mp4]
[MOVE] from [/mnt/HD/Movies/Blade Runner 2049 (2017)/Blade.Runner.2049.2017.1080p.BluRay.H264.AAC-RARBG.mp4] to [/mnt/HD/Movies/Blade Runner 2049 (2017)/Blade Runner 2049 (2017).mp4]
[MOVE] from [/mnt/HD/Movies/Blade Runner 2049 (2017)/Blade.Runner.2049.2017.1080p.BluRay.H264.AAC-RARBG.en.srt] to [/mnt/HD/Movies/Blade Runner 2049 (2017)/Blade Runner 2049 (2017).srt]
Skipped [/mnt/HD/Movies/Blade Runner 2049 (2017)/Blade.Runner.2049.2017.1080p.BluRay.H264.AAC-RARBG.pt-BR.srt] because [/mnt/HD/Movies/Blade Runner 2049 (2017)/Blade Runner 2049 (2017).srt] already exists
Processed 2 files
So, in the end, I have:

Code: Select all

Blade.Runner.2049.2017.1080p.BluRay.H264.AAC-RARBG.pt-BR.srt  
Blade Runner 2049 (2017).mp4  
Blade Runner 2049 (2017).srt
Is there anyway to keep both subtitles, or the move script take into account that more than one subtitle exists? And, when renaming, do Blade Runner 2049 (2017).en.srt and Blade Runner 2049 (2017).pt-BR.srt for example?
Last edited by kodiuser on 09 Jan 2018, 02:39, edited 1 time in total.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Filebot rename with multiple languages subtitles

Post by kim »

It looks like Filebot don't know what "pt-BR" is.... so you need to rename it to "pt" first

then you need to use a format e.g.

Code: Select all

filebot.cmd -rename "D:\Blade Runner 2049 (2017)" --db TheMovieDB -non-strict --action TEST --format "{ny}{subt}"
result
[TEST] from [D:\Blade Runner 2049 (2017)\Blade.Runner.2049.2017.1080p.BluRay.H264.AAC-RARBG.mp4] to [D:\Blade Runner 2049 (2017)\Blade Runner 2049 (2017).mp4]
[TEST] from [D:\Blade Runner 2049 (2017)\Blade.Runner.2049.2017.1080p.BluRay.H264.AAC-RARBG.en.srt] to [D:\Blade Runner 2049 (2017)\Blade Runner 2049 (2017).eng.srt]
[TEST] from [D:\Blade Runner 2049 (2017)\Blade.Runner.2049.2017.1080p.BluRay.H264.AAC-RARBG.pt.srt] to [D:\Blade Runner 2049 (2017)\Blade Runner 2049 (2017).por.srt]
kodiuser
Posts: 13
Joined: 08 Jan 2018, 01:38

Re: Filebot rename with multiple languages subtitles

Post by kodiuser »

Like you can have en, en-GB and such, there's possibility with pt and pt-BR. I'll see what I can do with your suggestion. Thanks!
kodiuser
Posts: 13
Joined: 08 Jan 2018, 01:38

Re: [SOLVED] Filebot rename with multiple languages subtitles

Post by kodiuser »

kim, you were correct. Changing to pt works, thanks.
Post Reply