Use AMC to rename or replace existing sub with .eng.srt?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
jamauai
Posts: 24
Joined: 20 Oct 2014, 10:33

Use AMC to rename or replace existing sub with .eng.srt?

Post by jamauai »

Script:

Code: Select all

 filebot -script fn:amc “/path/to/source" --action move --def subtitles=en movieFormat=“/path/to/dest/{n} ({y}) [{vf}]/{fn}" clean=y
Trying to get the following results:
- If .srt file exists, rename to .eng.srt
- If .srt file doesn't exist, download eng sub

Or I guess it could download an eng sub every time and overwrite the existing .srt.

How do I go about doing that? I've tried adding -non-strict and --conflict auto without success.
User avatar
rednoah
The Source
Posts: 23950
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Use AMC to rename or replace existing sub with .eng.srt?

Post by rednoah »

- If .srt file exists, rename to .eng.srt
Use the replace script => viewtopic.php?f=4&t=5#p2100

(or force ".eng" extra suffice via the format)
- If .srt file doesn't exist, download eng sub
That's what the amc script does.
Or I guess it could download an eng sub every time and overwrite the existing .srt.
That sounds like you wanna get banned. Don't waste OpenSubtitles resources.
How do I go about doing that?
What's missing?


:arrow: Please read • How to 'Request Help'
:idea: Please read the FAQ and How to Request Help.
jamauai
Posts: 24
Joined: 20 Oct 2014, 10:33

Re: Use AMC to rename or replace existing sub with .eng.srt?

Post by jamauai »

This is sufficient. Thank you for your help.
Post Reply