├── README.md ├── extract.py └── extras ├── radarr_cleanup └── sonarr_cleanup /README.md: -------------------------------------------------------------------------------- 1 | # tExtractor 2 | Extract torrents upon completion. 3 | 4 | The script will recursively scan the `/` folder for compressed archives and extract them to `//__extracted` (it will also scan the `__extracted` directory for any additional compressed archives and extract them into the same directory). 5 | 6 | ## Help 7 | 8 | The extract.py script has 5 parameters: 9 | 10 | Positional parameters: 11 | - Postion 1: torrent hash/id - currently not used 12 | - Postion 2: the torrent name 13 | - Postion 3: the download location 14 | 15 | Optional parameters: 16 | - -t DIR / --tmp DIR: Specify a custom temporary directory to perform extraction into. NOTE: DIR must exist. 17 | - -v / --verbose: debug output 18 | 19 | 20 | ## Usage 21 | While this setup works with most torrent clients, I'll demonstrate the setup with Deluge: 22 | 23 | - Fist make sure you have the `Execute` plugin installed 24 | - Then add a new event on `Torrent Completed` and then enter the location of extract.py in the command box 25 | - Restart Deluge for settings to take effect 26 | 27 | The execute plugin will run any script with the paramters `