Page 1 of 1

AMC non-strict for subtitles

Posted: 16 Oct 2014, 09:18
by maon
Hi,

I'm using filebot on Synology NAS. Opensubtitles usually cannot match subtitles if the search option is via file hash only. So I put non-strict option when calling the script. This didnot help. Subtitles are searched via file hash only. When I checked amc.groovy the strict parameter is set to true when calling getMissingSubtitles.

def subtitleFiles = getMissingSubtitles(file:files, lang:languageCode, strict:true, output:'srt', .........

Is there a way to make amc search subtitles non-strict?
This is how I call filebot:

filebot -script fn:amc --log-file amc.log --action move --conflict skip -non-strict --def "movieFormat=/volume1/video/movies/{n.upperInitial().space('.')}.({y})/{n.upperInitial().space('.')}.{y}" music=n subtitles=tr artwork=y "ut_dir=/volume1/video/downloads" "ut_kind=single" "ut_state=5" "ut_file=" "ut_label="


Thanks...

Re: AMC non-strict for subtitles

Posted: 16 Oct 2014, 12:20
by rednoah
The amc script forces good subtitles.

After running the amc script, you could run the suball script (which does allow -non-strict)
http://www.filebot.net/forums/viewtopic ... &t=5#p8871

One of the reasons being, amc script is often called on release, when there is no subtitles yet, while the suball script can be called repeatedly every night (with options to ignore files older than x days).

Re: AMC non-strict for subtitles

Posted: 16 Oct 2014, 13:15
by maon
But if amc runs and moves the movie files to the final location with formatting, then when I run suball, the movie filename will not contain release group's name, so it will not find the correct subtitle if the hash info is absent on opensubtitles.

Re: AMC non-strict for subtitles

Posted: 16 Oct 2014, 13:37
by rednoah
If xattr metadata work then FileBot will remember the original filename and take that into consideration when searching for subtitles with FileBot.

Though if you really want it as part of the amc script you can easily modify it. ;)

Re: AMC non-strict for subtitles

Posted: 16 Oct 2014, 14:16
by maon
Thank you for your support. I really liked filebot. Options are nearly endless when it comes to filebot :)