[SYNOLOGY] Filebot Script general questions of a newbie

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
justkidding
Posts: 38
Joined: 12 Oct 2015, 20:42

[SYNOLOGY] Filebot Script general questions of a newbie

Post by justkidding »

Hey everybody,

first of all I want to thank Rednoah for his awesome work.
I read lots of threads and codings here and I am totally impressed what people do and what is possible.
I am myself I am very new to the whole coding stuff and just get my things to work by copy and paste :)
As I am not at home right now and cannot access my NAS right now I will paste the Coding of my script and its log later.
I am running:

DSM 5.2
Filebot 4.6
Java 8

For now I am facing some issues:
1.) I have included the command --def unsorted=y into my script. I thought with this addition the script will check if it finds a correct movie or TV show in the databases (e.g. TheTVDB) and if it cannot match the name it will move this particular file to an own folder called "unsorted". It's not working so far. I will add the log later. I am just curious if there is anything I have to take care off or prepare before calling this command?

2.) I am using Jdownloader and it is putting the downloaded files to the directory /volume1/downloads. I give the script as output this folder (-- output /volume1/downloads). I am using the event scripter plugin of Jdownloader to start the script every time the extraction of a file is completed. Now sometimes an archive only includes another archive. I would like to implement a logic which excludes a folder if it is not the /volume1/downloads folder and at the same time contains archive files. None of the files of this folder should be written to the exclusion list.
I'll try to explain it with an example and some cases.
- Path /volume1/downloads contains the following subfiles
--Folder 1
--Archive.rar
--File.mkv
-> File.mkv should get renamed properly
-Path /volume1/downloads/Folder 1
case a) Folder 1 contains archive.rar files -> stop scanning this folder without writting any of the files to the excluding
list. By doing this I want to make sure that this folder is scanned next time when the script is executed and
hopefully the extraction is finished
case b) Folder 1 contains no archive.rar files -> rename and move (normal behaviour)

Is it possible to implement something like this? I guess it is a if...then command but as I am not familiar with groovy I have no idea how to achieve this. Any help is really appreciated.

Best regards
justkidding

P.S. As soon as I have my script up and running I'll definitely buy you some beer rednoah :mrgreen:
Post Reply