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 AniDB mappings (https://github.com/Anime-Lists/anime-lists), 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

Roadmap

  • Currently, some episodes (particularly movies or OVAs) can be missed. This should be improved in the future by using more robust mapping between AniDB entries and AniList entries
  • Add a way to automatically add suggested releases to torrent client

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.2.tar.gz (148.1 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.2-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: seadex_sonarr-0.0.2.tar.gz
  • Upload date:
  • Size: 148.1 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.2.tar.gz
Algorithm Hash digest
SHA256 6cb27e3237be94d08e2027c4d1578bdf2dd1c34756ebeaf697259188d1e679f0
MD5 c2a4652767ea78d8a7e413f254b3d7c9
BLAKE2b-256 0338508a5d288494df25fd68a1e193e060fe2d696fff6a9c8b83e065ecace8fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seadex_sonarr-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 36.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c6979aca7354bb1130f8e0b65c5a300bd95a86ba07cedeec02e6a09e71cdd98d
MD5 c42b9aa8c73d7bc8305abb48104277bd
BLAKE2b-256 a0172f9f12d1a718d3d55b0bbd96d3e74d70b41cd0df647cb459a29f60ece225

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