Page 1 of 1
[QUESTION] script to run everyday to search subtitles
Posted: 05 Oct 2015, 17:45
by marine88
Hey everybody im creating new scripts of automatism and one I want to create is for everyday search for subtitles for al my movies and series and download new ones because when i download the episode they don´t exist yet i im having a problem that i can ´t search for more than 1 language (im tryng to download portuguese english spanish and french) im looking in everything and try lang=pt,en.es,fr and don´t work all topics seems deprecated can anyone help me?
here is my code
Code: Select all
filebot -script fn:suball N:/Series/ -non-strict --def minAgeDays=5 --log all --log-file "D:/Downloads/Download/subtitles.log" --lang=pt
Re: [QUESTION] script to run everyday to search subtitles
Posted: 05 Oct 2015, 18:14
by rednoah
You can't do multiple language with a single call, but you can do multiple calls:
Code: Select all
filebot -script fn:suball "/path/to/input" --lang eng -non-strict --def minAgeDays=5 maxAgeDays=30
filebot -script fn:suball "/path/to/input" --lang spa -non-strict --def minAgeDays=5 maxAgeDays=30
...
PS: make sure you don't overly abuse OpenSubtitles (or risk getting banned)
Re: [QUESTION] script to run everyday to search subtitles
Posted: 05 Oct 2015, 21:24
by marine88
ok thanks before i can more than 1 language i have almost all subs i just need that fileboot finds new subtitles now im tryng to put all this working on a netgear readynas duo v2 (armv5) thanks for all your help
Re: [QUESTION] script to run everyday to search subtitles
Posted: 07 Oct 2015, 15:45
by AsCavaco
Rednoah i tried this script , but it only sees one avi that is not inside a folder , the other folders that are inside tv series it didnt checked , is there another command missing ???
Inside Tv Series i have lots of folders its not checking them !!!
filebot -script fn:suball "/volume1/Media/Tv Series/" -non-strict --def minAgeDays=5 --log all --log-file "/volume1/public/subtitles.log" --lang=pt
Fetch subtitles for [/volume1/Media/Tv Series]
Get [Portuguese] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Looking up subtitles by name via OpenSubtitles
No matching subtitles found: /volume1/Media/Tv Series/The.Penguins.Of.Madagascar.S01E03.Haunted.Habitat.DSR.XviD-ETACH.avi
Done ヾ(ï¼ âŒ’ãƒ¼âŒ’ï¼ )ノ
Re: [QUESTION] script to run everyday to search subtitles
Posted: 09 Oct 2015, 16:08
by marine88
i run this script everyday searching for new subs but i got a lot of 401
Code: Select all
Get [Portuguese] subtitles for 2 files
Looking up subtitles by hash via OpenSubtitles
Lookup by hash failed: 401 Unauthorized
Looking up subtitles by name via OpenSubtitles
Search by name failed: 401 Unauthorized
No matching subtitles found: N:\Series\Z Nation\Season 02\Z.Nation.S02E01.HDTV.x264-KILLERS.mp4
No matching subtitles found: N:\Series\Z Nation\Season 02\Z.Nation.S02E02.HDTV.x264-KILLERS.mp4
any tip? i know that user limit for day is 200 subs i only donwload 10 today and get this error!
Code: Select all
limit_check_by = user_id
user_id = 1554488
global_24h_download_limit = 200
client_ip = 84.90.x.xxx
client_24h_download_count = 9
client_download_quota = 191
client_24h_download_limit = 200
Done ヾ(@⌒ー⌒@)ノ
Re: [QUESTION] script to run everyday to search subtitles
Posted: 09 Oct 2015, 16:52
by rednoah
If you think it's a bug. Use Fiddler to capture the HTTP request/response and submit a bug report to OpenSubtitles:
@see
http://forum.opensubtitles.org/viewforum.php?f=8
@see
http://www.telerik.com/fiddler
Re: [QUESTION] script to run everyday to search subtitles
Posted: 13 Oct 2015, 12:47
by justkidding
rednoah wrote:You can't do multiple language with a single call, but you can do multiple calls:
Code: Select all
filebot -script fn:suball "/path/to/input" --lang eng -non-strict --def minAgeDays=5 maxAgeDays=30
filebot -script fn:suball "/path/to/input" --lang spa -non-strict --def minAgeDays=5 maxAgeDays=30
...
PS: make sure you don't overly abuse OpenSubtitles (or risk getting banned)
Hi Rednoah,
just a short question to the search with multiple languages:
If i want to run the filebot script fn:amc automatically all files that are not matched are written to the excluding list.
So if I run the script with --lang eng at first and then with --lang deu afterwards the particular files are excluded of the list anyway. Do you get what I mean?
Is it possible to run the script fn:amc and then search in english at first and if it doesn't find anything then search in german before writing a path/file to the excluding list?
Or if this is not possible is it possible to determine from the filename if it is better to search in English or German? I guess that is very complicated
Thanks and best regards
justkidding
Re: [QUESTION] script to run everyday to search subtitles
Posted: 14 Oct 2015, 07:16
by rednoah
Don't confuse the amc and the suball script. They're completely different, and amc script (~600 LOC) is much more complex than suball script (~ 60 LOC). The suball script does not read or write or care about any kind of exclude list.
Re: [QUESTION] script to run everyday to search subtitles
Posted: 14 Oct 2015, 08:46
by justkidding
Hey,
oh I'm sorry I really mixed them up.
But I am using the amc script for organizing my movies and for that I have the command "--lang eng". I am assuming this command is for matching the titles with the movie and TV DBs so it tries to search for an english title in the database but what happens when I have a German movie for example? In this case it cannot match the title with the Movie database if I use --lang eng right?
Is it possible to use --lang eng --lang deu in the same script:amc call, so that it tries to match with the english and german title?
Do I understand anything completely wrong?
Best regards,
justkidding
Re: [QUESTION] script to run everyday to search subtitles
Posted: 14 Oct 2015, 15:10
by rednoah
You can only use one --lang option. If filenames are German, then using --lang deu will work better, but that doesn't mean that --lang eng for German files won't work at all, it'll just work less well. If German is the original title it'll always work. If the original title is English, and you use some weird foreign name for it, then it might not work.
Re: [QUESTION] script to run everyday to search subtitles
Posted: 14 Oct 2015, 15:31
by justkidding
Okay, I see.
Can I do it like that:
1st run the script:amc with language english and without calling the excluding list
2nd run the script:amc with language german and with calling the excluding list
In this way I make sure that it checks both languages and I shouldn't get banned when I use the excluding list only with the german language.
Is this a possible way?
Thanks and best regards,
Justkidding
Re: [QUESTION] script to run everyday to search subtitles
Posted: 14 Oct 2015, 16:04
by rednoah
No. Absolutely not. You're on the wrong path.
What does that achieve? Other than processing most files twice? If you only have German you don't need the first call. If you have mixed English/German you don't want the second call because it'll override the results of the first pass. So a bad match caused by German language ambiguities will mess with a good English match. Naturally, English-language processing is tested MUCH more thoroughly than German-language processing.
What is it you're trying to do anyway? What's not working? Are we talking about database language preference? Or are we still talking about subtitles?
Do you even have an example of a German-named file that works with --lang deu but not with --lang eng? If something is not working, I'd start with that.
PS: if this thread is no longer subtitle related, make a new thread
Re: [QUESTION] script to run everyday to search subtitles
Posted: 14 Oct 2015, 19:31
by justkidding
Hey,
thank you for explaining that to me - that has helped a lot

I have mixed English/German titles and I'm talking about database language preference.
I was just wondering if a german movie name can be recognized with using --lang eng but as I understood you that is quite likely.
If I have an example I will start a new thread. Thank you very much!