Search found 48 matches

by Zignature
10 Jun 2016, 00:21
Forum: Scripting and Automation
Topic: [SCRIPT] Automated multilingual subtitle grabber for Sonarr
Replies: 25
Views: 25844

Re: [SCRIPT] Automated multilingual subtitle grabber for Son

The suball script has options for only download subs for files that are older than a certain amount of time. Setting minAgeDays to 3-4 days should be good enough. Some good info here: https://www.filebot.net/forums/viewtopic.php?f=4&t=5#p8871 I tried the other auto-subliminal script, but kinda ...
by Zignature
07 Jun 2016, 19:13
Forum: Scripting and Automation
Topic: [SCRIPT] Automated multilingual subtitle grabber for Sonarr
Replies: 25
Views: 25844

Re: [SCRIPT] Automated multilingual subtitle grabber for Son

You could always setup a scheduled task on your machine to run Filebot to check for missing subtitles
by Zignature
07 Jun 2016, 19:08
Forum: Scripting and Automation
Topic: [SCRIPT] Automated multilingual subtitle grabber for Sonarr
Replies: 25
Views: 25844

Re: [SCRIPT] Automated multilingual subtitle grabber for Son

Hi, it may well happen that when sonarr finds a new episode, the subtitle is not already available, so, How would I force the script to retry after a while? I wouldn't know at the moment :( I have Sonarr setup to download episodes only if they're 7 days old. This way chances are better to find ...
by Zignature
07 Jun 2016, 19:05
Forum: Scripting and Automation
Topic: [SCRIPT] Automated multilingual subtitle grabber for Sonarr
Replies: 25
Views: 25844

Re: [SCRIPT] Automated multilingual subtitle grabber for Son

Hello, Tried this with sonarr, it downloaded subtitle all right. But it appended _eng.srt to the subtitle which doesn't exactly match the video file name because of extra "eng" in the sub srt file (e.g. Mr. Robot - S01E05 - eps1.4_3xpl0its.wmv. eng .srt) so I changed the following to: [it ...
by Zignature
06 Jun 2016, 05:46
Forum: Scripting and Automation
Topic: [SCRIPT] Automated multilingual subtitle grabber for Sonarr
Replies: 25
Views: 25844

Re: [SCRIPT] Automated multilingual subtitle grabber for Son

The script has to append the language code to the filename, because it's possible to search for multiple languages. Imagine you want both English and Dutch subtitles...

Does the ".eng" in the filename cause any problems for you?
by Zignature
03 Jun 2016, 17:42
Forum: Scripting and Automation
Topic: [SCRIPT] Automated multilingual subtitle grabber for Sonarr
Replies: 25
Views: 25844

Re: [SCRIPT] Automated multilingual subtitle grabber for Son

in the version on my pc I also pass a variable to determine which ISO 639 version to use, and then use a switch to set it.

Code: Select all

--def iso639=<1|2|3>
by Zignature
28 May 2016, 19:01
Forum: Scripting and Automation
Topic: [SCRIPT] Automated multilingual subtitle grabber for Sonarr
Replies: 25
Views: 25844

Re: [SCRIPT] Automated multilingual subtitle grabber for Son

Since I don't have a Linux or Mac system, perhaps someone could tell me the path settings for Filebot on those systems.
Path settings for XPenology would also be greatly appreciated :)
by Zignature
28 May 2016, 18:57
Forum: Scripting and Automation
Topic: [SCRIPT] Automated multilingual subtitle grabber for Sonarr
Replies: 25
Views: 25844

[SCRIPT] Automated multilingual subtitle grabber for Sonarr

Custom script for Sonarr for automated multilingual subtitle downloading. This script uses Filebot to search for missing subtitles by hash in the given language(s) and saves the file with ISO 639-2/B language code(s). This is handy for Plex users for instance, since Plex doesn't support ISO 639-3 ...
by Zignature
28 May 2016, 17:25
Forum: Scripting and Automation
Topic: [help] get a subtitle for a specific video file with script
Replies: 18
Views: 10777

Re: [help] get a subtitle for a specific video file with scr

Ok. Actually I could give the parameter any name. The word mode just sprung to mind :)

But would that script work as I modified it?

If I use --def mode=d method, how would I refer to it in the script? Same way eg. _args.mode?
by Zignature
28 May 2016, 17:15
Forum: Scripting and Automation
Topic: [help] get a subtitle for a specific video file with script
Replies: 18
Views: 10777

Re: [help] get a subtitle for a specific video file with scr

What if I added a parameter eg. --mode, with 'd' meaning download and 'u' meaning upgrade. Then the full argument would read: -script "E:\Scripts\sonarr-subber.groovy" --lang nl,en --mode d Would this be feasible? // select mode, download or upgrade def mode = _args.mode as String // select input ...
by Zignature
28 May 2016, 16:43
Forum: Scripting and Automation
Topic: [help] get a subtitle for a specific video file with script
Replies: 18
Views: 10777

Re: [help] get a subtitle for a specific video file with scr

does the --conflict parameter do anything for getMissingSubtitles()?

In case Sonarr downloads an upgrade for an episode, a new subtitle needs to be downloaded and then a conflict may occur.
Or should I use getSubtitles() instead for that?
by Zignature
28 May 2016, 16:30
Forum: Scripting and Automation
Topic: [help] get a subtitle for a specific video file with script
Replies: 18
Views: 10777

Re: [help] get a subtitle for a specific video file with scr

Since Sonarr sends environment variables, I simplified the setup for Sonarr skipping the batch file. It now sends the following arguments straight to Filebot.exe: -script "E:\Scripts\sonarr-subber.groovy" --lang nl,en sonarr-subber.groovy: // select input language(s) def languages = _args.lang.split ...
by Zignature
27 May 2016, 16:41
Forum: Scripting and Automation
Topic: [help] get a subtitle for a specific video file with script
Replies: 18
Views: 10777

Re: [help] get a subtitle for a specific video file with scr

Awesome!

Man I really need to do a course in Groovy... You make it look so easy and I really don't have a clue about this stuff :D
by Zignature
27 May 2016, 12:06
Forum: Scripting and Automation
Topic: [help] get a subtitle for a specific video file with script
Replies: 18
Views: 10777

Re: [help] get a subtitle for a specific video file with scr

By the way, is it possible to search multiple languages in one go? For instance if you feed a list of language codes like "nl,en,fr"?
Using eachWithIndex perhaps?
by Zignature
27 May 2016, 11:58
Forum: Scripting and Automation
Topic: [help] get a subtitle for a specific video file with script
Replies: 18
Views: 10777

Re: [help] get a subtitle for a specific video file with scr

Did some quick research. Plex only supports ISO 639-1 and ISO 639-2B language codes... :geek:

I posted a Feature Request: http://forums.plex.tv/discussion/219591 ... -3-support :twisted:
by Zignature
27 May 2016, 11:29
Forum: Scripting and Automation
Topic: NOOB - rename MOVIES and find english subs
Replies: 10
Views: 9782

Re: NOOB - rename MOVIES and find english subs

vanhouten035 wrote:-get-missing-subtitles doesn't work for me when I have every movie in a separate folder. Is there anyway to let this command look into each folder?
if you feed it the top directory it should search subtitles for all video files in all subdirectories
by Zignature
26 May 2016, 18:38
Forum: Scripting and Automation
Topic: [help] get a subtitle for a specific video file with script
Replies: 18
Views: 10777

Re: [help] get a subtitle for a specific video file with scr

Awesome, thanks!

Plex only seems to have problems with "nld" for Dutch. "nl" works fine, I haven't tried "dut" yet.
by Zignature
26 May 2016, 14:44
Forum: Scripting and Automation
Topic: [help] get a subtitle for a specific video file with script
Replies: 18
Views: 10777

Re: [help] get a subtitle for a specific video file with scr

There's a big demand for an automated subtitle downloader in the Sonarr community, so I thought I'd give it a go. And I just like it that a subtitle will be downloaded immediately when Sonarr imports an episode :) Somehow my Plex server doesn't seem to handle subtitle files with "nld" as the Dutch ...
by Zignature
26 May 2016, 12:14
Forum: Scripting and Automation
Topic: [help] get a subtitle for a specific video file with script
Replies: 18
Views: 10777

[help] get a subtitle for a specific video file with script

I'm trying to create a post-processing script for Sonarr. Everytime a video is downloaded the scipt is supposed to download the correct Dutch subtitle. I already got something going, but it seems the script is checking all files in the directory instead of the specific video file. I also can't seem ...