Script: Watch directories to trigger transmission downloads.

Discussion of Transmission that doesn't fit in the other categories
Post Reply
architek
Posts: 1
Joined: Sun Dec 09, 2018 8:53 am

Script: Watch directories to trigger transmission downloads.

Post by architek »

Hello,

I did a small python script to watch different directories and send torrents to transmission through rpcxml.
At the moment the script only works on Linux (using inotify blocking wait).

Configuration is simple in the form of YAML file:

Code: Select all

rpc_server:
    ip: 127.0.0.1
    port: 9091
    username: transmission
    password: pass
dirs:
    - watch_path:   /home/user/torrents/ebook/newspaper
      descrip:      Newspaper
      rpc_params:
          download_dir: /mnt/ext4/news
Every new torrents dropped in /home/user/torrents/ebook/newspaper will be sent to a remote transmission server with specific settings (here download_dir is set). Any transmission parameter available through rpc api can be set (download limits, paused, etc..)

To install it:

Code: Select all

pip3 install git+https://github.com/architek/trawa --user
To run it:

Code: Select all

trawa --config <configuration.yaml>
A default configuration file is here.

I'm sharing it in the hope it can be useful to others. Feel free to fork, write pull request, raise bug reports, ... ;-)

Regards
Post Reply