Page 1 of 1
Linux watch folder
Posted: 13 Mar 2020, 00:27
by turtlejay
Hi,
I currently have a headless seedbox running remotely. In it rtorrent completes a download, then moves that file to a completed folder. what i need filebot to do is scan that folder constantly and rename the files with a hardlink to another folder where i have plex scanning and btsync sending to my local machine. I had couchpotato for years but its spotty at best and im tired of manually doing this everyday. Im happy to buy a license and support the cause if i can have someone hold my hand setting this up. Im completely newbified in linux besides basic commands]
Thanks,
Jay
Re: Linux watch folder
Posted: 13 Mar 2020, 06:36
by rednoah
The
amc script is typically used for any kind of unattended automation, and you will find integration examples for rT as well:
viewtopic.php?f=4&t=215#p5316
i.e. you'll configure rT to call filebot on newly completed downloads, instead of watching a folder for changes
(which isn't nearly as reliable as you might hope)

Note that basic Linux skills are required. Just following instructions might work if you're lucky, or it might not, and basic Linux skills will become absolutely necessary in the latter case. So be prepared for a bit of a challenge.

Re: Linux watch folder
Posted: 13 Mar 2020, 09:24
by turtlejay
I've been reading about the AMC script. Can it be made to hardlink instead of copy?
Re: Linux watch folder
Posted: 13 Mar 2020, 09:57
by rednoah
Yes, --action duplicate (as seen in all the examples) will hardlink if possible, and copy if necessary. You can use --action hardlink to make it explicit, or fail.
Re: Linux watch folder
Posted: 13 Mar 2020, 18:16
by turtlejay
ok i think i get the idea, can you just tell me how to tell the script what folder to look in? also, how does it know not to rename over and over as the files will be left for seeding
Re: Linux watch folder
Posted: 13 Mar 2020, 18:26
by rednoah
rT will pass the input folder onto our glue logic script via arguments:
https://github.com/filebot/plugins/blob ... cess.sh#L4
We use
--def excludeList in our glue logic script to keep track of processed files, and that will make sure we never process the same file twice:
https://github.com/filebot/plugins/blob ... ess.sh#L11
Re: Linux watch folder
Posted: 13 Mar 2020, 21:13
by turtlejay
ok thx.1 year license purchased.
Re: Linux watch folder
Posted: 13 Mar 2020, 21:46
by turtlejay
I decided to run in qbittorent. Heres what im tasked with. I run Medusa/SickRage as well. There are 4 categories. Movies, Kids Movies, TV Shows and Kids Shows. How would i go about doing this so when filebot is called by qbittorent everything ends up in the proper folders i.e. X:\Movies X:\Kids Movies Y:\TV Y:\Kids TV
Re: Linux watch folder
Posted: 13 Mar 2020, 22:20
by rednoah
You'll have to customize the glue logic script to behave differently depending on what category you're dealing with at the moment.
Re: Linux watch folder
Posted: 13 Mar 2020, 22:57
by turtlejay
So based on what you are saying it will not recognize subfolder structure but it will know tv vs movie and create proper sub folders. Ex. X:/Media/Movies and X:/Media/TV.
Can the script call Plex for library scan?
Re: Linux watch folder
Posted: 14 Mar 2020, 06:35
by rednoah
1.
FileBot will not recognize your subfolder structure. But you can customize your format to recognize your subfolder structure. By default, it will create
Movies and
TV Shows folders as defined by the
{plex} default format.
2.
Yes. The
amc script is well-documented in this regard.
Re: Linux watch folder
Posted: 14 Mar 2020, 12:12
by turtlejay
Thanks! Best 6 bucks I ever spent
Re: Linux watch folder
Posted: 18 Mar 2020, 02:35
by turtlejay
@rednoah
is there any chance someone has modified this to work with the bittorrent client? it looks a lot like utorrent and qbit and the % variables are similar but not all the same
Re: Linux watch folder
Posted: 18 Mar 2020, 06:46
by rednoah
turtlejay wrote: ↑18 Mar 2020, 02:35
is there any chance someone has modified this to work with the bittorrent client? it looks a lot like utorrent and qbit and the % variables are similar but not all the same
[qBittorrent] Setup for Windows, Linux and Mac OS X
If it's a client where there's no instructions yet, you can look at the existing ones, understand how it works, then read up on how your bittorrent client of choice works, and then apply your newfound knowledge and perhaps share it with us here.
