Just a sloppy python script to import TV series from TVDB and add to sonarr
5.5K
A sloppy code written in python to fetch TV series from TVDB and add it to sonarr. It can send email notification in case of an error with sync.
Script variables are passed as environment variables. Supported variables are;
any has ID of 1.Docker image is available at: https://hub.docker.com/r/thundermagic/sonarr_netimport.
Docker image is multi arch. Supported architectures are arm, arm64 and amd64.
Docker manifest is used for multi arch awareness. So you just need to pull the image regardless of the underlying platform and the correct image will be pulled.
version: "2"
services:
sonarr_netimport:
image: thundermagic/sonarr_netimport:latest
restart: on-failure
container_name: sonarr_netimport
environment:
- TVDB_USERNAME=first.last
- TVDB_USER_KEY=user_key
- TVDB_API_KEY=tvdb_api_key
# IP address and port number where sonarr can be accessed
- SONARR_IP=192.168.4.4
- SONARR_PORT=8989
# Sonarr app API key. This is on sonarr under settings>general
- SONARR_API_KEY=sonarr_key
- SYNC_INTERVAL=3600 # Interval at which to sync with TVDB, in seconds
- SEARCH_MISSING_EPISODES=1 # 1 is True
- QUALITY_PROFILE_ID=1 # 1 is profile any
- MONITORED=1 # 1 is True
- ROOT_FOLDER_PATH=/tv/ # Full path of root folder
# Below variables are for sending error notification emails. If not needed, delete these
- [email protected]
- [email protected]
- EMAIL_PASSWORD=gmail_app_password
- SMTP_SERVER=smtp.gmail.com
- SMTP_SERVER_PORT=587
Content type
Image
Digest
Size
26.8 MB
Last updated
over 6 years ago
docker pull thundermagic/sonarr_netimport