Whatbox Logo
Login for certain variables to be updated with your slot's information

Wiki > FlexGet

FlexGet is a multipurpose automation tool for content like torrents, NZBs, podcasts, comics, series, movies, etc. FlexGet is able to handle different kinds of sources like RSS feeds, HTML pages and CSV files. There are even some plugins for sites that do not provide any kind of useful feeds.

Installation

  1. Connect to your slot through SSH

  2. Create a Python 3 virtualenv with the instructions found here or use an existing one.

  3. With your virtualenv activated, install FlexGet

     pip install flexget
    

You will now be able to run FlexGet with the command flexget.

Configuration

The official FlexGet documentation provides a good configuration guide.

Scheduling FlexGet

There are now two options for scheduling FlexGet. You can use the built-in daemon functionality of FlexGet using the official documentation or you can use cron to run FlexGet:

  1. Start editing your crontab. This will open your crontab in nano (an editor).

     crontab -e
    
  2. Add FlexGet to the crontab

    For hourly updates:

     @hourly /home/user/virtualenv/bin/flexget --cron execute  
    

    For updates at a custom interval

     */30 * * * * /home/user/virtualenv/bin/flexget --cron execute
    

    where 30 is the number of minutes between executions.

Common Problems

If "Your cron environment has different filesystem encoding (ANSI_X3.4-1968) compared to your terminal environment (UTF-8)." appears in the flexget log, add LANG=en_US.utf8 as the first line of your crontab.

FlexGet with transmission

If you are using transmission you will need to install the RPC client as well, otherwise you'll get an error. See https://flexget.com/Plugins/transmission

The password you need to enter is your main account password, the same you'd use in the web interface. In your ~/.config/transmission-daemon/settings.json file you will find a hashed version of it, you can't use that string in flexget.

3.0.0 or higher

More recent versions of FlexGet require more recent versions of the RPC client. Install it with:

    source ~/virtualenv/bin/activate
    pip install transmission-rpc

(Note the hyphen!)

0.6 or higher

If you get the error "Transmissionrpc module version 0.6 or higher required." This can be done by inside the virtualenv via:

    source ~/virtualenv/bin/activate
    easy_install transmissionrpc