Skip to main content

SeaDex Sonarr Sync

Project description

SeaDex-Sonarr

Actions License

SeaDex-Sonarr

SeaDex-Sonarr is designed as a tool to ensure that you have Anime releases on Sonarr that match with the best releases tagged on SeaDex. It works by scanning through series tagged as type "Anime" on Sonarr, matching these up via the TVDB ID to AniList mappings via the Kometa Anime Mappings (https://github.com/Kometa-Team/Anime-IDs), and then linking these through to SeaDex. It then returns a list of links to download, which can also optionally be pushed through via a Discord bot. This should make it significantly more hands-free to keep the best Anime releases out there.

Installation

SeaDex-Sonarr can be installed via pip:

pip install seadex_sonarr

Or the cutting edge via GitHUb:

git clone https://github.com/bbtufty/seadex-sonarr.git
cd seadex-sonarr
pip install -e .

Usage

To run SeaDex-Sonarr, the Python code is pretty short:

from seadex_sonarr import SeaDexSonarr

sonarr_url = "your-sonarr-url:8989"
sonarr_api_key = "abcdefg12345"

sds = SeaDexSonarr(sonarr_url=sonarr_url, 
                   sonarr_api_key=sonarr_api_key
                   )
sds.run()

If you want to use Discord notifications (recommended), then set up a webhook following this guide and add the URL into the call:

from seadex_sonarr import SeaDexSonarr

sonarr_url = "your-sonarr-url:8989"
sonarr_api_key = "abcdefg12345"
discord_url = "https://discord.com/api/webhooks/abcde12345"

sds = SeaDexSonarr(sonarr_url=sonarr_url, 
                   sonarr_api_key=sonarr_api_key,
                   discord_url=discord_url,
                   )
sds.run()

Advanced Settings

There are a number of switches you can use to filter down what SeaDex-Sonarr returns as the "best" option for you. These are:

  • public_only (defaults to True), will only return results from public trackers
  • prefer_dual_audio (defaults to True), will prefer results tagged as dual audio, if any exist
  • want_best (defaults to True), will prefer results tagged as best, if any exist

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seadex_sonarr-0.0.1.tar.gz (92.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seadex_sonarr-0.0.1-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file seadex_sonarr-0.0.1.tar.gz.

File metadata

  • Download URL: seadex_sonarr-0.0.1.tar.gz
  • Upload date:
  • Size: 92.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for seadex_sonarr-0.0.1.tar.gz
Algorithm Hash digest
SHA256 450e4e53f6ae82a2cbec345e19290866c86b2a3d8998a2d4ba0e883def98bd84
MD5 bde1e4e0f4ec1447f7c16f2de7405089
BLAKE2b-256 20cdae2f66a3ae940a1dcdb2857f0c6046116ca66537c079981f6fcf13dfd14b

See more details on using hashes here.

File details

Details for the file seadex_sonarr-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: seadex_sonarr-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for seadex_sonarr-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3d1349212c94809a2a9d18d046f489fce0be29ef1890db0506063e949aa2a36
MD5 6d3a32b7b8c82c8d82039cead3aa6e3e
BLAKE2b-256 1fb34c6d72f7a788be86703e65d266b9f0aca934e6425debbe43ce0792d3affb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page