Page 1 of 1

Help with "-non-strict" in docker (filbot:node) on Synology

Posted: 16 May 2021, 12:02
by ltb76
Hi,
I'm having an issue with getting "-non-strict" working in a docker container. I'm just moving my filbot setup from a dedicated Windows VM to a Docker container on my Synology NAS. I've got most working - however I can not seem to get filebot to pick up the "non-strict" setting.

Content o the "task file" /volume1/docker/Filebot/.filebot-node/task/1.args

Code: Select all

-script
fn:amc
/volume1/tmp/Torrent/Finished
--output
/volume1/Video/
--action
move
--order
Airdate
--conflict
auto
--lang
en
-non-strict
--def
exec=/data/setperm.sh
music=y
unsorted=y
subtitles=en,fr,da
clean=y
deleteAfterExtract=y
excludeList=/volume1/Video/amc.log/.excludes
--apply
refresh
--log
all
--log-file
/data/.filebot-node/filebot.log
When I executes the task it seems to work, however it does not pickup "-non-strict" and I get these in the log: * Consider using -non-strict to enable search by name and opportunistic matching

Code: Select all

C:\>curl --cookie "null" "http://10.10.10.234:5452/task?id=1"
/opt/filebot-node/task 1

------------------------------------------

Run script [fn:amc] at [Sun May 16 11:33:25 GMT 2021]
Parameter: exec = /data/setperm.sh
Parameter: music = y
Parameter: unsorted = y
Parameter: subtitles = en,fr,da
Parameter: clean = y
Parameter: deleteAfterExtract = y
Parameter: excludeList = /volume1/Video/amc.log/.excludes
Argument[0]: /volume1/tmp/Torrent/Finished
Use excludes: /volume1/Video/amc.log/.excludes (0)
Read archive [modern.family.s11e01.multi.1080p.web.h264-mack4.rar] and extract to [/volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/modern.family.s11e01.multi.1080p.web.h264-mack4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4]
Include [/volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/modern.family.s11e01.multi.1080p.web.h264-mack4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4.mkv]
Extracting files [/volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/modern.family.s11e01.multi.1080p.web.h264-mack4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4.mkv]
Ignore video extra: /volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/Sample/modern.family.s11e01.multi.1080p.web.h264-mack4.sample.mkv
Input: /volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/modern.family.s11e01.multi.1080p.web.h264-mack4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4.mkv
Group: {Series=modern family} => [Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/modern.family.s11e01.multi.1080p.web.h264-mack4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4.mkv
* Consider using -non-strict to enable search by name and opportunistic matching
Get [French] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/modern.family.s11e01.multi.1080p.web.h264-mack4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4.mkv
* Consider using -non-strict to enable search by name and opportunistic matching
Get [Danish] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/modern.family.s11e01.multi.1080p.web.h264-mack4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4.mkv
* Consider using -non-strict to enable search by name and opportunistic matching
Rename episodes using [TheTVDB] with [Airdate]
Lookup via [Modern Family]
Fetching episode data for [Modern Family]
Fetching episode data for [My Family]
[MOVE] from [/volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/modern.family.s11e01.multi.1080p.web.h264-mack4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4.mkv] to [/volume1/Video/TV Shows/Modern Family/Season 11/Modern Family - S11E01 - New Kids on the Block.mkv]
Processed 1 file
Execute: /data/setperm.sh
Hello World!
Delete archive /volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/modern.family.s11e01.multi.1080p.web.h264-mack4.rar
Delete archive volume /volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/modern.family.s11e01.multi.1080p.web.h264-mack4.r19
...snip...
Delete archive volume /volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/modern.family.s11e01.multi.1080p.web.h264-mack4.r00
Clean clutter files and empty folders
Delete /volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4/Sample/modern.family.s11e01.multi.1080p.web.h264-mack4.sample.mkv
...snip...
Delete /volume1/tmp/Torrent/Finished/Modern.Family.S11E01.MULTi.1080p.WEB.H264-MACK4
Done ヾ(@⌒ー⌒@)ノ

------------------------------------------

[Process completed]

I have tried creating a new task - and it seems to be the same behavior. When I create the task is states "-non-strict", it is present in the N.args file - but executing the task seems to ignore it.

Code: Select all

/opt/filebot-node/task 2 # filebot -script 'fn:amc' /volume1/tmp/Torrent/Finished --output /volume1/Video/ --action move -non-strict --order Airdate --conflict auto --lang en --def 'music=y' 'unsorted=y' 'subtitles=English, Danish, French' 'clean=y' 'deleteAfterExtract=y' 'excludeList=/volume1/Video/amc.log/.excludes' --apply refresh --log all --log-file '/data/.filebot-node/filebot.log'

------------------------------------------

Run script [fn:amc] at [Sun May 16 11:52:11 GMT 2021]
Parameter: music = y
Parameter: unsorted = y
Parameter: subtitles = English, Danish, French
Parameter: clean = y
Parameter: deleteAfterExtract = y
Parameter: excludeList = /volume1/Video/amc.log/.excludes
Argument[0]: /volume1/tmp/Torrent/Finished
Use excludes: /volume1/Video/amc.log/.excludes (0)
No files selected for processing
Done ¯\_(ツ)_/¯
Run script [fn:amc] at [Sun May 16 11:54:45 GMT 2021]
Parameter: music = y
Parameter: unsorted = y
Parameter: subtitles = English, Danish, French
Parameter: clean = y
Parameter: deleteAfterExtract = y
Parameter: excludeList = /volume1/Video/amc.log/.excludes
Argument[0]: /volume1/tmp/Torrent/Finished
Use excludes: /volume1/Video/amc.log/.excludes (0)
Read archive [modern.family.s01e02.multi.1080p.web.h264-mack4.rar] and extract to [/volume1/tmp/Torrent/Finished/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/modern.family.s01e02.multi.1080p.web.h264-mack4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4]
Include [/volume1/tmp/Torrent/Finished/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/modern.family.s01e02.multi.1080p.web.h264-mack4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4.mkv]
Extracting files [/volume1/tmp/Torrent/Finished/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/modern.family.s01e02.multi.1080p.web.h264-mack4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4.mkv]
Input: /volume1/tmp/Torrent/Finished/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/modern.family.s01e02.multi.1080p.web.h264-mack4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4.mkv
Group: {Series=modern family} => [Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /volume1/tmp/Torrent/Finished/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/modern.family.s01e02.multi.1080p.web.h264-mack4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4.mkv
* Consider using -non-strict to enable search by name and opportunistic matching
Get [Danish] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /volume1/tmp/Torrent/Finished/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/modern.family.s01e02.multi.1080p.web.h264-mack4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4.mkv
* Consider using -non-strict to enable search by name and opportunistic matching
Get [French] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /volume1/tmp/Torrent/Finished/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/modern.family.s01e02.multi.1080p.web.h264-mack4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4.mkv
* Consider using -non-strict to enable search by name and opportunistic matching
Rename episodes using [TheTVDB] with [Airdate]
Lookup via [Modern Family]
Fetching episode data for [Modern Family]
Fetching episode data for [My Family]
[MOVE] from [/volume1/tmp/Torrent/Finished/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/modern.family.s01e02.multi.1080p.web.h264-mack4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4.mkv] to [/volume1/Video/TV Shows/Modern Family/Season 01/Modern Family - S01E02 - The Bicycle Thief.mkv]
Processed 1 file
Delete archive /volume1/tmp/Torrent/Finished/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/modern.family.s01e02.multi.1080p.web.h264-mack4.rar
...snip..
Delete archive volume /volume1/tmp/Torrent/Finished/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/modern.family.s01e02.multi.1080p.web.h264-mack4.r00
Clean clutter files and empty folders
Delete /volume1/tmp/Torrent/Finished/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4/mack4.nfo
...snip...
Delete /volume1/tmp/Torrent/Finished/Modern.Family.S01E02.MULTi.1080p.WEB.H264-MACK4
Done ヾ(@⌒ー⌒@)ノ
System Info:

Code: Select all

filebot -script 'fn:sysinfo' --log-file '/data/.filebot-node/filebot.log'

------------------------------------------

FileBot 4.9.3 (r8340)
JNA Native: 5.2.2
MediaInfo: 19.09
Tools: fpcalc/1.4.3 p7zip/16.02 unrar/5.61 mkvpropedit/45.0.0 AtomicParsley/0.9.6
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2021-02-22 (r738)
Groovy: 3.0.7
JRE: OpenJDK Runtime Environment 11.0.11
JVM: 64-bit OpenJDK 64-Bit Server VM
FILEBOT_OPTS: -Dapplication.deployment=docker -Duser.home=/data
CPU/MEM: 4 Core / 5 GB Max Memory / 41 MB Used Memory
OS: Linux (amd64)
HW: Linux 839555b6ad62 4.4.59+ #25556 SMP PREEMPT Thu Mar 18 13:00:34 CST 2021 x86_64 x86_64 x86_64 GNU/Linux
CPU/MEM: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz [MemTotal: 20 GB | MemFree: 6 GB | MemAvailable: 17 GB | SwapCached: 42 MB | SwapTotal: 14 GB | SwapFree: 14 GB]
STORAGE: btrfs [/] @ 2.4 TB | btrfs [/data] @ 2.4 TB | btrfs [/volume1] @ 2.4 TB
USER: root
DATA: /data/.filebot
Package: DOCKER
License: FileBot License P2181xxxx (Valid-Until: 2022-01-08)
Done ヾ(@⌒ー⌒@)ノ

------------------------------------------

[Process completed]

What am I missing? - any help apreciated.

Re: Help with "-non-strict" in docker (filbot:node) on Synology

Posted: 16 May 2021, 12:41
by rednoah
-non-strict is not present in the *.args file you posted. If you're using FileBot Node, then you can add -non-strict by unchecking the Strict Mode checkbox in the WebUI.


EDIT:

The second one works for -rename calls, but the amc script forces Strict Mode for internal -get-subtitles calls, so you will always get this help message:

Code: Select all

No matching subtitles found: ...
* Consider using -non-strict to enable search by name and opportunistic matching
:arrow: You can ignore these somewhat misleading messages there.

Re: Help with "-non-strict" in docker (filbot:node) on Synology

Posted: 16 May 2021, 12:55
by ltb76
Thanks for your answer.
-non-strict is present in the first code block (line 14)

Image

EDIT:

:!: Ahh - OK so the log output is just misleading and should be ignore?
Thanks :)

Re: Help with "-non-strict" in docker (filbot:node) on Synology

Posted: 16 May 2021, 12:59
by rednoah
Sorry, didn't catch that. The argument order is somehow different from task 2. In any case, the help message is bad in this case, because the amc script doesn't pass through your -non-strict option to the internal -get-subtitles call. I'll see what I can do about not printing this particular "help" message.


EDIT:

Fixed with FileBot r8482.