Subtitles

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
davidwbeitz
Posts: 5
Joined: 10 Oct 2016, 17:09

Subtitles

Post 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.
User avatar
rednoah
The Source
Posts: 20840
Joined: 16 Nov 2011, 08:59

Re: Subtitles

Post by rednoah »

Did you try the --def subtitles option?
:idea: Please read the FAQ and How to Request Help.
davidwbeitz
Posts: 5
Joined: 10 Oct 2016, 17:09

Re: Subtitles

Post 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
User avatar
rednoah
The Source
Posts: 20840
Joined: 16 Nov 2011, 08:59

Re: Subtitles

Post by rednoah »

What does the log say?

Once you've had a look at the log, this will answer your next question.
:idea: Please read the FAQ and How to Request Help.
davidwbeitz
Posts: 5
Joined: 10 Oct 2016, 17:09

Re: Subtitles

Post 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 ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 20840
Joined: 16 Nov 2011, 08:59

Re: Subtitles

Post by rednoah »

Log says:

Code: Select all

OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Do what the logs says. ;)
:idea: Please read the FAQ and How to Request Help.
davidwbeitz
Posts: 5
Joined: 10 Oct 2016, 17:09

Re: Subtitles

Post by davidwbeitz »

sorry I'm a real noob and just starting to learn about this. login to what? and how?
User avatar
rednoah
The Source
Posts: 20840
Joined: 16 Nov 2011, 08:59

Re: Subtitles

Post by rednoah »

1. Open CMD
2. Run filebot -script fn:configure
3. Follow the instructions. You will need to have an OpenSubtitles account.
:idea: Please read the FAQ and How to Request Help.
davidwbeitz
Posts: 5
Joined: 10 Oct 2016, 17:09

Re: Subtitles

Post by davidwbeitz »

perfect!

do I need to put the opensubtitles login information into my command line argument?
User avatar
rednoah
The Source
Posts: 20840
Joined: 16 Nov 2011, 08:59

Re: Subtitles

Post by rednoah »

No. You just need to run configure once before you can use the subtitle feature.
:idea: Please read the FAQ and How to Request Help.
speelgoedauto2
Posts: 2
Joined: 18 Jan 2022, 15:24

Re: Subtitles

Post 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 (?_?)
User avatar
rednoah
The Source
Posts: 20840
Joined: 16 Nov 2011, 08:59

Re: Subtitles

Post 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
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 20840
Joined: 16 Nov 2011, 08:59

Re: Subtitles

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
Post Reply