Traktarr uses Trakt.tv to find shows and movies to add in to Sonarr and Radarr, respectively.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
l3uddz c544911211
-g will now remove that genre from blacklisted_genres if it is blacklisted.
7 years ago
media 5 sec sleep between page requests 7 years ago
misc improved upgrade_settings and removed default settings from base_config, use readme example for reference 7 years ago
notifications use debug log level for sent notification messages 7 years ago
systemd remove unionfs.service from After sevice file entry 7 years ago
.gitignore gitignore change 7 years ago
README.md Update README.md 7 years ago
requirements.txt added --version option. 7 years ago
traktarr.py -g will now remove that genre from blacklisted_genres if it is blacklisted. 7 years ago

README.md

Traktarr

Script to add new shows & movies to Sonarr/Radarr based on Trakt lists.

Requirements

  1. Python 3.5 or higher (sudo apt install python3 python3-pip).
  2. requirements.txt modules (see below).

Installation on Ubuntu/Debian

  1. cd /opt
  2. sudo git clone https://github.com/l3uddz/traktarr
  3. sudo chown -R user:group traktarr (run id to find your user / group)
  4. cd traktarr
  5. sudo python3 -m pip install -r requirements.txt
  6. python3 traktarr.py to generate a default a config.json file.
  7. Edit config.json to your preference.

Configuration

{
  "automatic": {
    "movies": {
      "anticipated": 10,
      "boxoffice": 10,
      "interval": 24,
      "popular": 3,
      "trending": 2
    },
    "shows": {
      "anticipated": 10,
      "interval": 72,
      "popular": 1,
      "trending": 2
    }
  },
  "core": {
    "debug": false
  },
  "filters": {
    "movies": {
      "allowed_countries": [
        "us",
        "gb",
        "ca"
      ],
      "blacklist_title_keywords": [
        "untitled",
        "barbie"
      ],
      "blacklisted_genres": [
        "documentary",
        "music",
        "animation"
      ],
      "blacklisted_max_year": 2019,
      "blacklisted_min_runtime": 60,
      "blacklisted_min_year": 2000,
      "blacklisted_tmdb_ids": []
    },
    "shows": {
      "allowed_countries": [
        "us",
        "gb",
        "ca"
      ],
      "blacklisted_genres": [
        "animation",
        "game-show",
        "talk-show",
        "home-and-garden",
        "children",
        "reality",
        "anime",
        "news",
        "documentary",
        "special-interest"
      ],
      "blacklisted_max_year": 2019,
      "blacklisted_min_runtime": 15,
      "blacklisted_min_year": 2000,
      "blacklisted_networks": [
        "twitch",
        "youtube",
        "nickelodeon",
        "hallmark",
        "reelzchannel",
        "disney",
        "cnn",
        "cbbc",
        "the movie network",
        "teletoon",
        "cartoon network",
        "espn",
        "yahoo!",
        "fox sports"
      ],
      "blacklisted_tvdb_ids": []
    }
  },
  "notifications": {
    "verbose": true
  },
  "radarr": {
    "api_key": "",
    "profile": "HD-1080p",
    "root_folder": "/movies/",
    "url": "http://localhost:7878"
  },
  "sonarr": {
    "api_key": "",
    "profile": "HD-1080p",
    "root_folder": "/tv/",
    "tags": {},
    "url": "http://localhost:8989"
  },
  "trakt": {
    "api_key": ""
  }
}

Usage

Help

Usage: python3 traktarr.py movies --help
Usage: python3 traktarr.py shows --help

Movies

Usage: python3 traktarr.py movies [OPTIONS]

  Add new movies to Radarr.

Options:
  -t, --list-type [anticipated|trending|popular]
                                  Trakt list to process.  [required]
  -l, --add-limit INTEGER         Limit number of movies added to Radarr.
                                  [default: 0]
  -d, --add-delay FLOAT           Seconds between each add request to Radarr.
                                  [default: 2.5]
  --no-search                     Disable search when adding movies to Radarr.
  --help                          Show this message and exit.

Shows

Usage: python3 traktarr.py shows [OPTIONS]

  Add new shows to Sonarr.

Options:
  -t, --list-type [anticipated|trending|popular]
                                  Trakt list to process.  [required]
  -l, --add-limit INTEGER         Limit number of shows added to Sonarr.
                                  [default: 0]
  -d, --add-delay FLOAT           Seconds between each add request to Sonarr.
                                  [default: 2.5]
  --no-search                     Disable search when adding shows to Sonarr.
  --help                          Show this message and exit.

Example

python3 traktarr.py movies -t anticipated -l 10

python3 traktarr.py shows -t popular -l 2