Page 1 of 1

Subtitles

Posted: 14 Oct 2016, 11:27
by davidwbeitz
I'm using the following from the command line settings that work great.

Is there a switch I can add that will automatically download the subtitles for a show and copy it into the correct folder with the downloaded file?

"C:/Program Files/FileBot/filebot.exe" -script fn:amc --output "t:/videos" --action copy -non-strict "c:/temp/videos" --log-file amc.log --def excludeList=amc.txt

Thanks in advance for your help.

Re: Subtitles

Posted: 14 Oct 2016, 12:43
by rednoah
Did you try the --def subtitles option?

Re: Subtitles

Posted: 14 Oct 2016, 17:23
by davidwbeitz
I tried the following but no subtitle file shows up in my out folders

"C:/Program Files/FileBot/filebot.exe" -script fn:amc --output "c:/temp/videos" --action copy -non-strict "c:/temp/downloads" --log-file amc.log --def excludeList=amc.txt --def subtitles=eng

Re: Subtitles

Posted: 14 Oct 2016, 17:24
by rednoah
What does the log say?

Once you've had a look at the log, this will answer your next question.

Re: Subtitles

Posted: 14 Oct 2016, 17:27
by davidwbeitz

Code: Select all

Run script [fn:amc] at [Fri Oct 14 13:21:56 EDT 2016]
Parameter: excludeList = amc.txt
Parameter: subtitles = eng
Argument: C:\temp\downloads
Creating excludes: C:\temp\Videos\amc.txt
Input: C:\temp\downloads\Mr. Robot\Season 01\Mr. Robot - S01E02 - eps1.1_ones-and-zer0es.mpeg.mkv
Input: C:\temp\downloads\Suits\Season 06\Suits - S06E07 - Shake the Trees.mkv
Input: C:\temp\downloads\The Fosters (2013)\Season 04\The Fosters (2013) - S04E07 - Highs & Lows.mkv
Group: [tvs:mr robot] => [Mr. Robot - S01E02 - eps1.1_ones-and-zer0es.mpeg.mkv]
Group: [tvs:suits] => [Suits - S06E07 - Shake the Trees.mkv]
Group: [tvs:the fosters 2013] => [The Fosters (2013) - S04E07 - Highs & Lows.mkv]
Get [English] subtitles for 1 files
OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Rename episodes using [TheTVDB]
Auto-detected query: [Mr Robot]
Fetching episode data for [Mr. Robot]
[COPY] Rename [C:\temp\downloads\Mr. Robot\Season 01\Mr. Robot - S01E02 - eps1.1_ones-and-zer0es.mpeg.mkv] to [c:\temp\videos\TV Shows\Mr. Robot\Season 01\Mr. Robot - S01E02 - eps1.1_ones-and-zer0es.mpeg.mkv]
Processed 1 files
Failed to set xattr: C:\temp\Videos\TV Shows\Mr. Robot\Season 01\Mr. Robot - S01E02 - eps1.1_ones-and-zer0es.mpeg.mkv:net.filebot.metadata
Get [English] subtitles for 1 files
OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Rename episodes using [TheTVDB]
Auto-detected query: [Suits]
Fetching episode data for [Suits]
[COPY] Rename [C:\temp\downloads\Suits\Season 06\Suits - S06E07 - Shake the Trees.mkv] to [c:\temp\videos\TV Shows\Suits\Season 06\Suits - S06E07 - Shake the Trees.mkv]
Processed 1 files
Failed to set xattr: C:\temp\Videos\TV Shows\Suits\Season 06\Suits - S06E07 - Shake the Trees.mkv:net.filebot.metadata
Get [English] subtitles for 1 files
OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Rename episodes using [TheTVDB]
Auto-detected query: [The Fosters 2013, the fosters]
Fetching episode data for [The Fosters (2013)]
Fetching episode data for [The Fosters]
[COPY] Rename [C:\temp\downloads\The Fosters (2013)\Season 04\The Fosters (2013) - S04E07 - Highs & Lows.mkv] to [c:\temp\videos\TV Shows\The Fosters (2013)\Season 04\The Fosters (2013) - S04E07 - Highs & Lows.mkv]
Processed 1 files
Failed to set xattr: C:\temp\Videos\TV Shows\The Fosters (2013)\Season 04\The Fosters (2013) - S04E07 - Highs & Lows.mkv:net.filebot.metadata
Done ヾ(@⌒ー⌒@)ノ

Re: Subtitles

Posted: 14 Oct 2016, 17:28
by rednoah
Log says:

Code: Select all

OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Do what the logs says. ;)

Re: Subtitles

Posted: 14 Oct 2016, 17:30
by davidwbeitz
sorry I'm a real noob and just starting to learn about this. login to what? and how?

Re: Subtitles

Posted: 14 Oct 2016, 17:44
by rednoah
1. Open CMD
2. Run filebot -script fn:configure
3. Follow the instructions. You will need to have an OpenSubtitles account.

Re: Subtitles

Posted: 14 Oct 2016, 17:52
by davidwbeitz
perfect!

do I need to put the opensubtitles login information into my command line argument?

Re: Subtitles

Posted: 14 Oct 2016, 18:17
by rednoah
No. You just need to run configure once before you can use the subtitle feature.

Re: Subtitles

Posted: 19 Jan 2022, 10:14
by speelgoedauto2
when i run the filebot -script fn:configure and fill in the right username and password (what is working on the website since i changed it)
it get the following message;

Code: Select all

Sorry. OpenSubtitles Login now requires FileBot 4.9.5 (r9072) or higher due to server-side API changes.
Abort (?_?)

Re: Subtitles

Posted: 19 Jan 2022, 15:43
by rednoah
rednoah wrote: 19 Jan 2022, 06:00 FileBot 4.9.5 (r9072) and higher fix the problem by storing your password verbatim and using it for login requests. There is no workaround for older versions.
:arrow: viewtopic.php?t=12999

Re: Subtitles

Posted: 20 Jan 2022, 03:26
by rednoah