HI all,
Question on subtitles,
Is there a way to set if the directory has subtitles, not to download from opensubtitles.
Second question, is there a way to change the srt file if exists to .eng.srt?
Thanks for you help.
Do not download subtitles if folder already contains subtitles
Re: The directory has subtitles
I will assume that you're using the CLI, and not the GUI.
{lang} is never undefined, and throws an error instead of returning a null or undefined value, so we need to use any{}... to work around that, to explicitly include files where {lang} fails.
Yes, the use --file-filter option to include / exclude input files from processing:
Code: Select all
filebot -r . --file-filter '!folder.listFiles{ it.subtitle }' ...
Yes, use --db file to process generic files and use --file-filter option to include / exclude input files from processing:
Code: Select all
filebot -rename --db file -r . --file-filter 'any{ f.subtitle && !lang }{ true }' --format '{fn}.eng'
{lang} is never undefined, and throws an error instead of returning a null or undefined value, so we need to use any{}... to work around that, to explicitly include files where {lang} fails.
Please read the FAQ and How to Request Help.