Diference between Filebot versions and scripts?

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
dasaco
Posts: 15
Joined: 24 Dec 2019, 07:37

Diference between Filebot versions and scripts?

Post by dasaco »

Hi there,

I was wondering why Filebot portable under windows acts smartly than filebot on Qnap running amc script does.

Usually happens to me that when a download finishes, and my script runs (usually with TV Shows, movies are 99% processed fine), that I get many outputs to the 'unsorted' folder.

When I pick those files with Filebot under windows, load and math it, I usually get an auto match. Of course some times I'm prompted to input a more detailed title, but many of them are automaticaly recognized without interaction.

My script is runned in 'non-strict' mode, if it helps. At that point I have another question. In Filebot Node, at developers tab, I can select 'stable' or 'latest' script channel. That makes Filebot run a "different" script. Does it have an impact on accuracy? Wich is the difference between those?

To resume, can I run an script in a way that makes Qnap's Filebot act near smartly or as smart as Window's Filebot acts standalone?

Actually I'm running latest version of Filebot, 4.9.0 on both systems, and the script used, called through qBitorrent, is:

Code: Select all

filebot -script fn:amc --action hardlink --def artwork=y --def extras=y --def backdrops=y --def music=y --def tmdbTV=y --def nfoOnly=n --lang es --output /share/CACHEDEV1_DATA/Multimedia -mediainfo --encoding UTF-8 -non-strict --conflict auto --def clean=y --def unsorted=y --log-file /share/Descargas/logs/registro.log --def excludeList=/share/Descargas/logs/procesados.txt --def skipExtract=n --def deleteAfterExtract=y --def subtitles=en,es --def plex=192.168.1.200:G_zzi4a-sZ_GrXPjH73D ut_dir="/share/CACHEDEV1_DATA/Descargas/Completadas" ut_kind=multi ut_title="" ut_label=""
Many thanks in advance.
FileBot 4.9.0 (r6976) / OpenJDK Runtime Environment 13.0.1 / Linux 4.14.24-qnap (amd64)
QNAP TS-253Be (QTS 4.4.1.1146) / 16 gb RAM / 2x4 Tb WD RED (Raid 0)
User avatar
rednoah
The Source
Posts: 19159
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Diference between Filebot versions and scripts?

Post by rednoah »

Presumably, you're running the same revision on both platforms? Please provide logs that show different logs for the same files on different platforms. If you have a file that should work but doesn't, just copy the logs and share them. I'll have a look.


:idea: Please read How to Request Help.


:idea: I recommend just sticking with stable. Unless I make changes and I ask you to try the latest changes to confirm the latest fix or improvement. ;)
:idea: Please read the FAQ and How to Request Help.
dasaco
Posts: 15
Joined: 24 Dec 2019, 07:37

Re: Diference between Filebot versions and scripts?

Post by dasaco »

Hello again, I'll try to do my best to be clear.

My first platform is a QNAP TS-253Be (QTS 4.4.1.1146)

Code: Select all

$ filebot -version
FileBot 4.9.0 (r6976) / OpenJDK Runtime Environment 13.0.1 / Linux 4.14.24-qnap (amd64)
My script is being called from qBitorrent 4.2.1 when a download finishes:

Code: Select all

filebot -script fn:amc --action hardlink --def artwork=y --def extras=y --def backdrops=y --def music=y --def tmdbTV=y --def nfoOnly=n --lang es --output /share/CACHEDEV1_DATA/Multimedia -mediainfo --encoding UTF-8 -non-strict --conflict auto --def clean=y --def unsorted=y --log-file /share/Descargas/logs/registro.log --def excludeList=/share/Descargas/logs/procesados.txt --def skipExtract=n --def deleteAfterExtract=y --def subtitles=en,es --def plex=192.168.*.***:***** ut_dir="/share/CACHEDEV1_DATA/Descargas/Completadas" ut_kind=multi ut_title="" ut_label=""
I will put an example of files not being recognized, and classified as unsorted:

Code: Select all

Run script [fn:amc] at [Tue Dec 31 22:19:14 CET 2019]
Parameter: artwork = y
Parameter: extras = y
Parameter: backdrops = y
Parameter: music = y
Parameter: tmdbTV = y
Parameter: nfoOnly = n
Parameter: clean = y
Parameter: unsorted = y
Parameter: excludeList = /share/Descargas/logs/procesados.txt
Parameter: skipExtract = n
Parameter: deleteAfterExtract = y
Parameter: subtitles = en,es
Parameter: plex = *****
Parameter: ut_dir = /share/CACHEDEV1_DATA/Descargas/Completadas
Parameter: ut_kind = multi
Parameter: ut_title = 
Parameter: ut_label = 
Use excludes: /share/Descargas/logs/procesados.txt (536)
Ignore hidden: /share/CACHEDEV1_DATA/Descargas/Completadas/[email protected]__thumb
Input: /share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv
Group: {Movie=Little (2019), Series=null} => [Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv
Get [Spanish] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv]
Skipped [/share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv] because [/share/CACHEDEV1_DATA/Multimedia/Movies/Pequeño gran problema (2019)/Pequeño gran problema (2019).mkv] already exists
Processed 0 files
Processing 1 unsorted files
[HARDLINK] from [/share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv] to [/share/CACHEDEV1_DATA/Multimedia/Unsorted/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv]
Processed 1 files
Notify Plex: [host:192.168.*.***, token:*********]
GET: http://192.168.*.***:******/library/sections/all/refresh?X-Plex-Token=********
Done ヾ(@⌒ー⌒@)ノ
Run script [fn:amc] at [Tue Dec 31 22:22:08 CET 2019]
Parameter: artwork = y
Parameter: extras = y
Parameter: backdrops = y
Parameter: music = y
Parameter: tmdbTV = y
Parameter: nfoOnly = n
Parameter: clean = y
Parameter: unsorted = y
Parameter: excludeList = /share/Descargas/logs/procesados.txt
Parameter: skipExtract = n
Parameter: deleteAfterExtract = y
Parameter: subtitles = en,es
Parameter: plex = *****
Parameter: ut_dir = /share/CACHEDEV1_DATA/Descargas/Completadas
Parameter: ut_kind = multi
Parameter: ut_title = 
Parameter: ut_label = 
Use excludes: /share/Descargas/logs/procesados.txt (537)
Ignore hidden: /share/CACHEDEV1_DATA/Descargas/Completadas/[email protected]__thumb
Input: /share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv
Group: {Movie=Little (2019), Series=null} => [Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv
Get [Spanish] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv]
Skipped [/share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv] because [/share/CACHEDEV1_DATA/Multimedia/Movies/Pequeño gran problema (2019)/Pequeño gran problema (2019).mkv] already exists
Processed 0 files
Processing 1 unsorted files
[HARDLINK] from [/share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv] to [/share/CACHEDEV1_DATA/Multimedia/Unsorted/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv]
Processed 1 files
Notify Plex: [host:192.168.*.***, token:*********]
GET: http://192.168.*.***:******/library/sections/all/refresh?X-Plex-Token=********
Done ヾ(@⌒ー⌒@)ノ
So those 2 files aren't matched.

When I try on my second platform, Filebot GUI (Portable version) under Windows 10 64 bits, info here:

Code: Select all

FileBot 4.9.0 (r6980)
JNA Native: 6.1.0
MediaInfo: 19.09
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-12-07 (r610)
Groovy: 2.5.8
JRE: OpenJDK Runtime Environment 13.0.1
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 12 Core / 4.3 GB Max Memory / 63 MB Used Memory
OS: Windows 10 (amd64)
STORAGE: NTFS [(C:)] @ 268 GB | NTFS [(J:)] @ 424 GB | NTFS [Multimedia] @ 6 TB | NTFS [Descargas] @ 6 TB | NTFS [Descargas] @ 6 TB
DATA: C:\Users\******\Downloads\FileBot_4.9.0-portable\data
Package: ZIP
License: FileBot License P******* (Valid-Until: 2020-09-28)
Now it matches files without interaction:

Code: Select all

Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]\Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv	{"@type":"Episode","seriesName":"Big Little Lies","season":2,"episode":5,"title":"Mátame","airdate":{"year":2019,"month":7,"day":7},"id":7228430,"seriesInfo":{"database":"TheTVDB","order":"Airdate","language":"es","type":"TV Series","id":305719,"name":"Big Little Lies","aliasNames":["Big Little Lies (2017)","Sedmilhářky","שקרים קטנים גדולים","Hatalmas kis hazugságok","Big Little Lies - Piccole grandi bugie","Wielkie kłamstewka","Большая маленькая ложь","大小谎言"],"certification":"TV-MA","startDate":{"year":2017,"month":2,"day":19},"genres":["Comedy","Crime","Drama","Suspense"],"network":"HBO","rating":8.9,"ratingCount":611,"runtime":50,"status":"Continuing"}}
Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]\Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv	{"@type":"Episode","seriesName":"Big Little Lies","season":2,"episode":6,"title":"La mala madre","airdate":{"year":2019,"month":7,"day":14},"id":7228433,"seriesInfo":{"database":"TheTVDB","order":"Airdate","language":"es","type":"TV Series","id":305719,"name":"Big Little Lies","aliasNames":["Big Little Lies (2017)","Sedmilhářky","שקרים קטנים גדולים","Hatalmas kis hazugságok","Big Little Lies - Piccole grandi bugie","Wielkie kłamstewka","Большая маленькая ложь","大小谎言"],"certification":"TV-MA","startDate":{"year":2017,"month":2,"day":19},"genres":["Comedy","Crime","Drama","Suspense"],"network":"HBO","rating":8.9,"ratingCount":611,"runtime":50,"status":"Continuing"}}
Image

Code: Select all

<sequence date="2020-01-01T12:20:22.714+01:00">
        <rename dir="X:\Unsorted\Completadas\TEST\Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]" from="Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv" to="X:\Big Little Lies - S02E05 - Mátame.mkv"/>
        <rename dir="X:\Unsorted\Completadas\TEST\Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]" from="Big Little Lies - Temporada 2 [HDTV 720p][Cap.206][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv" to="X:\Big Little Lies - S02E06 - La mala madre.mkv"/>
    </sequence>
Thanks in advance.
FileBot 4.9.0 (r6976) / OpenJDK Runtime Environment 13.0.1 / Linux 4.14.24-qnap (amd64)
QNAP TS-253Be (QTS 4.4.1.1146) / 16 gb RAM / 2x4 Tb WD RED (Raid 0)
User avatar
rednoah
The Source
Posts: 19159
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Diference between Filebot versions and scripts?

Post by rednoah »

GUI: You have manually selected TheTVDB, so the file is interpreted as Episode in Episode Mode. The SxE numbers don't make sense, because there's no SxE numbers in the file name.


CLI: The file is processed as Movie in Movie Mode, probably because it looks like a Movie, no SxE and all:

Code: Select all

Auto-detect movie from context: [/share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv]
Skipped [/share/CACHEDEV1_DATA/Descargas/Completadas/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG]/Big Little Lies - Temporada 2 [HDTV 720p][Cap.205][AC3 5.1 Castellano][www.descargas2020.ORG][www.pctnew.ORG].mkv] because [/share/CACHEDEV1_DATA/Multimedia/Movies/Pequeño gran problema (2019)/Pequeño gran problema (2019).mkv] already exists

:idea: The unsorted behaviour is just a side effect. Presumably, another file has already been mismatched, and so this particular mismatch already exists, and so the skipped file is processed as unsorted.


:idea: You get completely different behaviour, because Episode Mode and Movie Mode have completely different behaviour. If you force Episode Mode via --def ut_label=TV then you will get the same behaviour in both GUI and CLI, assuming that the difference in file path doesn't make a difference here as well.
:idea: Please read the FAQ and How to Request Help.
dasaco
Posts: 15
Joined: 24 Dec 2019, 07:37

Re: Diference between Filebot versions and scripts?

Post by dasaco »

I see. And is there any way to take that ut label from label or category assigned in the download client, instead of manually setting it through the script call?
Many thanks for replying. Happy new year.
FileBot 4.9.0 (r6976) / OpenJDK Runtime Environment 13.0.1 / Linux 4.14.24-qnap (amd64)
QNAP TS-253Be (QTS 4.4.1.1146) / 16 gb RAM / 2x4 Tb WD RED (Raid 0)
User avatar
rednoah
The Source
Posts: 19159
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Diference between Filebot versions and scripts?

Post by rednoah »

Yes, that's the idea. --def ut_label would typically be set to values passed in from the upstream software, same as all the other --def ut_* parameters. Notably, not all upstream software makes it easy or possible to get the label / category value. It's up to your postprocess script to get values from your upstream software and pass it down to filebot.
:idea: Please read the FAQ and How to Request Help.
Post Reply