SUBALL

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
terra17
Posts: 47
Joined: 06 Sep 2014, 11:10

SUBALL

Post by terra17 »

Hi, everybody !

I use Filebot on my Synology ds213j , with my scripts, but after 4.6.0 installation my suball script does not work fine like before, with 4.5.6.

I always have a log file with EXCLUDE tv-series.

this is my script

filebot -script fn:suball '/volumeUSB1/usbshare/WD-Serie TV' -r -non-strict --lang it --format "match video" --def minAgeDays=1 --def maxAgeDays=7 --def minLengthMS=0 --log-file '/volumeUSB1/usbshare/WD-Serie TV/subtitle.txt' --output srt

this is my log

DiskStation213j> /volume1/scripts/SUBSERIETV.sh
Locking /volumeUSB1/usbshare/WD-Serie TV/subtitle.txt
Exclude: /volumeUSB1/usbshare/WD-Serie TV/Breaking Bad - Reazioni Collaterali
Exclude: /volumeUSB1/usbshare/WD-Serie TV/Crisis/Stagione 1
Exclude: /volumeUSB1/usbshare/WD-Serie TV/Heroes/Stagione 1
Exclude: /volumeUSB1/usbshare/WD-Serie TV/Heroes/Stagione 2
Fetch subtitles for [/volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade]
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s04e01.720p.hdtv.x264-killers.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s04e02.720p.hdtv.x264-2hd.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s04e03.720p.hdtv.x264-killers.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s04e05.720p.hdtv.x264-killers.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s04e08.720p.hdtv.x264-killers.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s04e09.720p.hdtv.x264-killers.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.Of.Thrones.S03E05.PROPER.720p.HDTV.x264-KILLERS.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S03E01.REPACK.720p.HDTV.x264-EVOLVE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S03E06.INTERNAL.720p.HDTV.x264-EVOLVE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S03E07.720p.HDTV.x264-EVOLVE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S03E09.720p.HDTV.x264-EVOLVE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S05E07.720p.HDTV.x264-IMMERSE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S05E02.720p.HDTV.x264-IMMERSE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S05E01.720p.HDTV.x264-IMMERSE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s05e05.720p.hdtv.x264-0sec.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S05E00.A.Day.in.the.Life.720p.HDTV.x264-BATV.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S05E06.720p.HDTV.x264-IMMERSE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s04e07.720p.hdtv.x264-killers.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S03E02.720p.HDTV.x264-IMMERSE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S03E10.720p.HDTV.x264-EVOLVE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S03E03.720p.HDTV.x264-EVOLVE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S03E08.720p.HDTV.x264-EVOLVE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s04e04.720p.hdtv.x264-killers.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S05E02.PROPER.720p.HDTV.x264-BATV.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S04E06.720p.HDTV.x264-DIMENSION.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/Game.of.Thrones.S03E04.720p.HDTV.x264-EVOLVE.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s04e10.720p.hdtv.x264-killers.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s05e03.720p.hdtv.x264-0sec.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s05e04.720p.hdtv.x264-0sec.mkv
Ignore: /volumeUSB1/usbshare/WD-Serie TV/Il Trono Di Spade/game.of.thrones.s05e04.proper.720p.hdtv.x264-0sec.mkv
No missing subtitles
Exclude: /volumeUSB1/usbshare/WD-Serie TV/Modern Family
Exclude: /volumeUSB1/usbshare/WD-Serie TV/Penny Dreadful
Exclude: /volumeUSB1/usbshare/WD-Serie TV/Person Of Interest
Done ヾ(@⌒ー⌒@)ノ

Locking /volumeUSB2/usbshare/TOSHIBA-Serie TV/subtitle.txt
Exclude: /volumeUSB2/usbshare/TOSHIBA-Serie TV/Aquarius
Exclude: /volumeUSB2/usbshare/TOSHIBA-Serie TV/Better Call Saul
Exclude: /volumeUSB2/usbshare/TOSHIBA-Serie TV/Breaking Bad - Reazioni Collaterali
Exclude: /volumeUSB2/usbshare/TOSHIBA-Serie TV/Il Trono Di Spade
Exclude: /volumeUSB2/usbshare/TOSHIBA-Serie TV/Person Of Interest
Done ヾ(@⌒ー⌒@)ノ


what's happened ? PENNY DREADFUL AND AQUARIUS have available subtitles, i see them on italian subs site, but filebot says EXCLUDE
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: SUBALL

Post by rednoah »

Exclude: /path/to/folder means that it doesn't even try to lookup subtitles for that folder.

@see viewtopic.php?f=4&t=5#p8871

I recommend having a look at the (very simple) code to see exactly why files/folders can be excluded.

@see https://github.com/filebot/scripts/blob ... all.groovy
:idea: Please read the FAQ and How to Request Help.
terra17
Posts: 47
Joined: 06 Sep 2014, 11:10

Re: SUBALL

Post by terra17 »

Also if I remove --def MinAge and MaxAge, it doesn't work, same result, i try cutting out every single piece of the scripts, but nothing.
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: SUBALL

Post by rednoah »

Files may be included or excluded based on file creation date, last modified date, file size, video length, embedded subtitles, etc
Are you sure that each of this conditions are ok?

If it's not too young / too old, and not too small / too short, then it's probably because the file already has embedded subtitles of some sort.

EDIT1:

btw what's the output of filebot -script fn:sysinfo?

EDIT2:

Try something like this to make the "embedded subtitles" condition more specific:

Code: Select all

--def "ignoreTextLanguage=zho"
:idea: Please read the FAQ and How to Request Help.
terra17
Posts: 47
Joined: 06 Sep 2014, 11:10

Re: SUBALL

Post by terra17 »

DiskStation213j> filebot -script fn:sysinfo
FileBot 4.6 (r3052)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.73
p7zip: Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,1 CPU)
chromaprint-tools: java.io.IOException: Cannot run program "/usr/local/chromapri nt/bin/fpcalc": error=2, No such file or directory
Extended Attributes: OK
Groovy Engine: 2.4.3
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Client VM
CPU/MEM: 1 Core / 121 MB Max Memory / 8 MB Used Memory
OS: Linux (arm)
uname: Linux DiskStation213j 3.2.40 #5565 Mon May 11 02:11:58 CST 2015 armv7l GN U/Linux synology_armada370_213j
Done ヾ(@⌒ー⌒@)ノ
terra17
Posts: 47
Joined: 06 Sep 2014, 11:10

Re: SUBALL

Post by terra17 »

oK, i've found that Penny Dreadful episode has embedded english subtitles, i add --def "ignoreTextLanguage=en" to my script and nothing changes.
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: SUBALL

Post by rednoah »

If the existing subtitles matches your ignoreTextLanguage pattern then the file will be excluded from subtitle lookup.

So what you're saying is:

if text languages contains 'en' do not download any subtitles

So if the file has English subtitles no more subtitles will be downloaded, of any language.
:idea: Please read the FAQ and How to Request Help.
terra17
Posts: 47
Joined: 06 Sep 2014, 11:10

Re: SUBALL

Post by terra17 »

T H A N K YOU !!!

I've got it !!
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: SUBALL

Post by rednoah »

Please post your final solution for the next guy. ;)
:idea: Please read the FAQ and How to Request Help.
terra17
Posts: 47
Joined: 06 Sep 2014, 11:10

Re: SUBALL

Post by terra17 »

Ok, sorry Rednoah !

Anyway I made a stupid error, I used --def "ignoreTextLanguage=en" , but in my case, i have to use --def "ignoreTextLanguage=it" (i'm italian :D).

With this method, there can be 100000 embedded not Italian subtitles in a file, but Filebot look for the Italian one !
Post Reply