Automation extractions, subtitles, filter big problems. Need help.

Support for Windows 10 users and the Microsoft Store package
Post Reply
Pellepurck
Posts: 1
Joined: 19 Apr 2019, 19:47

Automation extractions, subtitles, filter big problems. Need help.

Post by Pellepurck » 19 Apr 2019, 20:07

Hello.
I'm all new to coding and Filebot.
I'm trying to automate my extractions and getting subtitles automatically, and ignoring some series, but it seems hard.
I have some series that I need Filebot to not check for subtitles in my filebotexcludes.txt file but I only get an error when the bat file is running with the excludes def.
My filebotexcludes.txt is just in lines and dont have any numbers.
Like this:
Supernatural
The Flash
Supergirl
Arrow

I'm surely doing something wrong, please help me.. thanks!

Output of filebot -script fn:sysinfo:

Code: Select all

C:\Users\Admin-NAS>filebot -script fn:sysinfo
FileBot 4.8.5 (r6224)
JNA Native: 5.2.2
MediaInfo: 18.12
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-04-09 (r559)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 11.0.2
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 5 GB Max Memory / 49 MB Used Memory
OS: Windows 10 (amd64)
Package: MSI
License: UNREGISTERED
Done ?(?????)?
Here is my bat file commands:

Code: Select all

filebot -script fn:suball --filter "!readLines('D:/filebotexcludes.txt').contains(n)" -get-subtitles ./. --lang en,no --output srt --encoding utf8 -non-strict
pause
Here is my output:

Code: Select all

D:\TV Serier\TV2 Hjelper Deg>filebot -script fn:suball --filter "!readLines('D:/filebotexcludes.txt').contains(n)" -get-subtitles ./. --lang en,no --output srt --encoding utf8 -non-strict
Ignore small: D:\TV Serier\TV2 Hjelper Deg\TV2.Hjelper.Deg.S39E12.NORWEGiAN.720p.WEB.H264-HENRETTELSE\Sample\tv2.hjelper.deg.s39e12.norwegian.720p.web.h264-henrettelse-sample.mkv
Fetch subtitles for [D:\TV Serier\TV2 Hjelper Deg\TV2.Hjelper.Deg.S39E12.NORWEGiAN.720p.WEB.H264-HENRETTELSE]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Here is my bat file 2 commands:

Code: Select all

filebot -script fn:suball --def excludeList("D:\filebotexcludes.txt") -get-subtitles ./. --lang en,no --output srt --encoding utf8 -non-strict
pause
Here is my output 2:

Code: Select all

D:\TV Serier\TV2 Hjelper Deg>filebot -script fn:suball --def excludeList("D:\filebotexcludes.txt") -get-subtitles ./. --lang en,no --output srt --encoding utf8 -non-strict
Illegal Argument: java.nio.file.InvalidPathException: Illegal char <:> at index 13: excludeList(D:\filebotexcludes.txt) (excludeList(D:\filebotexcludes.txt))
Ignore small: D:\TV Serier\TV2 Hjelper Deg\TV2.Hjelper.Deg.S39E12.NORWEGiAN.720p.WEB.H264-HENRETTELSE\Sample\tv2.hjelper.deg.s39e12.norwegian.720p.web.h264-henrettelse-sample.mkv
Fetch subtitles for [D:\TV Serier\TV2 Hjelper Deg\TV2.Hjelper.Deg.S39E12.NORWEGiAN.720p.WEB.H264-HENRETTELSE]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles

User avatar
rednoah
The Source
Posts: 16571
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Automation extractions, subtitles, filter big problems. Need help.

Post by rednoah » 19 Apr 2019, 20:10

1.
--filter has no effect on -get-subtitles calls, so it looks like you're out of luck there. Your particular use case isn't supported well, at least --filter won't help you exclude shows from getting subtitles.

Maybe passing in the search query manually can help you achieve your goal? Are you having trouble with getting the right subtitles for the right shows?

Code: Select all

--q "Supernatural"

2.
Your command-line is also wrong, on multiple levels. Here is some reading material for that: https://www.filebot.net/forums/viewtopic.php?f=4&t=1899

:!: Also be careful of \ because it has special meaning in mostly all languages, be it CMD code or Groovy code.
:idea: Please read the FAQ and How to Request Help.

Post Reply