AMC non-strict for subtitles

Any questions? Need some help?
Post Reply
maon
Posts: 14
Joined: 16 Oct 2014, 09:05

AMC non-strict for subtitles

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

Re: AMC non-strict for subtitles

Post 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).
:idea: Please read the FAQ and How to Request Help.
maon
Posts: 14
Joined: 16 Oct 2014, 09:05

Re: AMC non-strict for subtitles

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

Re: AMC non-strict for subtitles

Post 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. ;)
:idea: Please read the FAQ and How to Request Help.
maon
Posts: 14
Joined: 16 Oct 2014, 09:05

Re: AMC non-strict for subtitles

Post by maon »

Thank you for your support. I really liked filebot. Options are nearly endless when it comes to filebot :)
Post Reply