# Buildarr Sonarr Plugin
[![PyPI](https://img.shields.io/pypi/v/buildarr-sonarr)](https://pypi.org/project/buildarr-sonarr) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/buildarr-sonarr) [![GitHub](https://img.shields.io/github/license/buildarr/buildarr-sonarr)](https://github.com/buildarr/buildarr-sonarr/blob/main/LICENSE) ![Pre-commit hooks](https://github.com/buildarr/buildarr-sonarr/actions/workflows/pre-commit.yml/badge.svg) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
The Buildarr Sonarr plugin (`buildarr-sonarr`) is a plugin for Buildarr that adds the capability to configure and manage [Sonarr](http://sonarr.tv) instances.
Sonarr is a PVR application which downloads, renames and manages the lifecycle of TV shows in your media library. It is capable of scanning for higher quality versions of your media and automatically upgrading them when a suitable version is available.
Currently, Sonarr V3 is the only supported version. Sonarr V4 support is planned for the future.
## Installation
From [version 0.4.0](https://buildarr.github.io/release-notes/#v040-2023-03-31) onwards, the Buildarr Sonarr plugin is now an independent package, developed separately from the core Buildarr package.
When using Buildarr as a [standalone application](https://buildarr.github.io/installation/#standalone-application), it can simply be installed using `pip`:
```bash
$ pip install buildarr buildarr-sonarr
```
When using Buildarr as a [Docker container](https://buildarr.github.io/installation/#docker), the Sonarr plugin is still bundled in the official container (`callum027/buildarr`). There is no need to install it separately.
You can upgrade, or pin the version of the plugin to a specific version, within the container by setting the `$BUILDARR_INSTALL_PACKAGES` environment variable in the `docker run` command using `--env`/`-e`:
```bash
-e BUILDARR_INSTALL_PACKAGES="buildarr-sonar==<version>"
```
In Buildarr version 0.3.0 and earlier, the Sonarr plugin was vendored within the core Buildarr package. On these versions, it is not necessary to install the Sonarr plugin separately.
## Quick Start
To use the Sonarr plugin, create a `sonarr` block within `buildarr.yml`, and enter the connection information required for the Buildarr instance to connect to the Sonarr instance you'd like to manage.
Buildarr won't modify anything yet since no configuration has been defined, but you are able to test if Buildarr is able to connect to and authenticate with the Sonarr instance.
```yaml
---
buildarr:
watch_config: true
sonarr:
hostname: "localhost" # Defaults to `sonarr`, or the instance name for instance-specific configs.
port: 8989 # Defaults to 8989.
protocol: "http" # Defaults to `http`.
api_key: "..." # Optional. If undefined, auto-fetch (authentication must be disabled).
```
Now try a `buildarr run`. If the output is similar to the below output, Buildarr was able to connect to your Sonarr instance.
```text
2023-03-29 20:39:50,856 buildarr:1 buildarr.cli.run [INFO] Buildarr version 0.4.0 (log level: INFO)
2023-03-29 20:39:50,856 buildarr:1 buildarr.cli.run [INFO] Loading configuration file '/config/buildarr.yml'
2023-03-29 20:39:50,872 buildarr:1 buildarr.cli.run [INFO] Finished loading configuration file
2023-03-29 20:39:50,874 buildarr:1 buildarr.cli.run [INFO] Loaded plugins: sonarr (0.4.0)
2023-03-29 20:39:50,875 buildarr:1 buildarr.cli.run [INFO] Loading instance configurations
2023-03-29 20:39:50,877 buildarr:1 buildarr.cli.run [INFO] Finished loading instance configurations
2023-03-29 20:39:50,877 buildarr:1 buildarr.cli.run [INFO] Running with plugins: sonarr
2023-03-29 20:39:50,877 buildarr:1 buildarr.cli.run [INFO] Resolving instance dependencies
2023-03-29 20:39:50,877 buildarr:1 buildarr.cli.run [INFO] Finished resolving instance dependencies
2023-03-29 20:39:50,877 buildarr:1 buildarr.cli.run [INFO] Loading secrets file from '/config/secrets.json'
2023-03-29 20:39:50,886 buildarr:1 buildarr.cli.run [INFO] Finished loading secrets file
2023-03-29 20:39:50,886 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Checking secrets
2023-03-29 20:39:50,912 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Connection test successful using cached secrets
2023-03-29 20:39:50,912 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Finished checking secrets
2023-03-29 20:39:50,912 buildarr:1 buildarr.cli.run [INFO] Saving updated secrets file to '/config/secrets.json'
2023-03-29 20:39:50,914 buildarr:1 buildarr.cli.run [INFO] Finished saving updated secrets file
2023-03-29 20:39:50,914 buildarr:1 buildarr.cli.run [INFO] Updating configuration on remote instances
2023-03-29 20:39:50,914 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Getting remote configuration
2023-03-29 20:39:51,406 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Finished getting remote configuration
2023-03-29 20:39:51,463 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Updating remote configuration
2023-03-29 20:39:52,019 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Remote configuration is up to date
2023-03-29 20:39:52,019 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Finished updating remote configuration
2023-03-29 20:39:52,019 buildarr:1 buildarr.cli.run [INFO] Finished updating configuration on remote instances
```
## Configuring your Sonarr instance
The following sections cover comprehensive configuration of a Sonarr instance.
Note that these documents do not show how you *should* configure a Sonarr instance. Rather, they show how you *can* configure a Sonarr instance the way you want with Buildarr. For more information on how to optimally configure Sonarr, you can refer to the excellent guides from [WikiArr](https://wiki.servarr.com/sonarr) and [TRaSH-Guides](https://trash-guides.info/Sonarr/).
* [Host Configuration](https://buildarr.github.io/plugins/sonarr/configuration/host)
* [Media Management](https://buildarr.github.io/plugins/sonarr/configuration/media-management)
* Profiles
* [Quality Profiles](https://buildarr.github.io/plugins/sonarr/configuration/profiles/quality)
- [Language Profiles](https://buildarr.github.io/plugins/sonarr/configuration/profiles/language)
- [Delay Profiles](https://buildarr.github.io/plugins/sonarr/configuration/profiles/delay)
- [Release Profiles](https://buildarr.github.io/plugins/sonarr/configuration/profiles/release)
- [Quality](https://buildarr.github.io/plugins/sonarr/configuration/quality)
- [Indexers](https://buildarr.github.io/plugins/sonarr/configuration/indexers)
- [Download Clients](https://buildarr.github.io/plugins/sonarr/configuration/download-clients)
- [Import Lists](https://buildarr.github.io/plugins/sonarr/configuration/import-lists)
- [Connect](https://buildarr.github.io/plugins/sonarr/configuration/connect)
- [Metadata](https://buildarr.github.io/plugins/sonarr/configuration/metadata)
- [Tags](https://buildarr.github.io/plugins/sonarr/configuration/tags)
- [General](https://buildarr.github.io/plugins/sonarr/configuration/general)
- [UI](https://buildarr.github.io/plugins/sonarr/configuration/ui)
## Dumping an existing Sonarr instance configuration
Buildarr is capable of dumping a running Sonarr instance's configuration.
```bash
$ buildarr sonarr dump-config http://localhost:8989 > sonarr.yml
Sonarr instance API key: <Paste API key here>
```
The dumped YAML object can be placed directly under the `sonarr` configuration block, or used as an [instance-specific configuration](https://buildarr.github.io/configuration/#multiple-instances-of-the-same-type).
Most values are explicitly defined in this dumped configuration, ensuring that when used with Buildarr, the configuration will always remain static.
```yaml
api_key: 1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d
hostname: localhost
port: 8989
protocol: http
settings:
connect:
definitions:
Trakt:
access_token: 1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b
auth_user: example
expires: '2023-05-10T15:34:08.117451+00:00'
notification_triggers:
include_health_warnings: false
on_application_update: false
on_episode_file_delete: true
on_episode_file_delete_for_upgrade: true
on_grab: false
on_health_issue: false
on_import: true
on_rename: false
on_series_delete: true
on_upgrade: true
refresh_token: 1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b
tags: []
download_clients:
definitions:
Transmission:
add_paused: false
category: sonarr
directory: null
enable: true
host: transmission
older_priority: last
password: null
port: 9091
priority: 1
recent_priority: last
remove_completed_downloads: true
remove_failed_downloads: true
tags: []
url_base: /transmission/
use_ssl: false
username: null
enable_completed_download_handling: true
redownload_failed: true
remote_path_mappings:
definitions: []
general:
analytics:
send_anonymous_usage_data: true
backup:
folder: Backups
interval: 7
retention: 28
host:
bind_address: '*'
instance_name: Sonarr (Example)
port: 8989
ssl_port: 9898
url_base: null
use_ssl: false
logging:
log_level: INFO
proxy:
bypass_proxy_for_local_addresses: true
enable: false
hostname: null
ignored_addresses: []
password: null
port: 8080
proxy_type: http
username: null
security:
authentication: none
certificate_validation: enabled
password: null
username: null
updates:
automatic: false
branch: main
mechanism: docker
script_path: null
import_lists:
definitions: {}
indexers:
definitions: {}
maximum_size: 0
minimum_age: 0
retention: 0
rss_sync_interval: 15
media_management:
analyze_video_files: true
anime_episode_format: '{Series TitleYear} - S{season:00}E{episode:00} - {absolute:000}
- {Episode CleanTitle} {[Preferred Words]} {[Quality Full]} {[MediaInfo VideoDynamicRangeType]}
[{MediaInfo VideoBitDepth}bit] {[MediaInfo VideoCodec]} [{Mediainfo AudioCodec}
{ Mediainfo AudioChannels}]{MediaInfo AudioLanguages} {[Release Group]} - Default'
change_file_date: none
chmod_folder: drwxr-xr-x
chown_group: null
create_empty_series_folders: false
daily_episode_format: '{Series TitleYear} - {Air-Date} - {Episode CleanTitle}
- {[Preferred Words]} {[Quality Full]} {[MediaInfo VideoDynamicRangeType]} [{MediaInfo
VideoBitDepth}bit] {[MediaInfo VideoCodec]} [{Mediainfo AudioCodec} {Mediainfo
AudioChannels}] {[MediaInfo AudioLanguages]} {[Release Group]} - Default'
delete_empty_folders: false
episode_title_required: always
import_extra_files: false
minimum_free_space: 100
multiepisode_style: range
propers_and_repacks: do-not-prefer
recycling_bin: null
recycling_bin_cleanup: 7
rename_episodes: true
replace_illegal_characters: true
rescan_series_folder_after_refresh: always
root_folders: []
season_folder_format: Season {season:00}
series_folder_format: '{Series TitleYear} [imdbid-{ImdbId}]'
set_permissions: false
skip_free_space_check: false
specials_folder_format: Specials
standard_episode_format: '{Series TitleYear} - S{season:00}E{episode:00} - {Episode
CleanTitle} - {[Preferred Words]} {[Quality Full]} {[MediaInfo VideoDynamicRangeType]}
[{MediaInfo VideoBitDepth}bit] {[MediaInfo VideoCodec]} [{Mediainfo AudioCodec}
{Mediainfo AudioChannels}] {[MediaInfo AudioLanguages]} {[Release Group]} -
Default'
use_hardlinks: true
metadata:
kodi_emby:
enable: false
episode_images: true
episode_metadata: true
season_images: true
series_images: true
series_metadata: true
series_metadata_url: true
roksbox:
enable: false
episode_images: true
episode_metadata: true
season_images: true
series_images: true
wdtv:
enable: false
episode_images: true
episode_metadata: true
season_images: true
series_images: true
profiles:
delay_profiles:
definitions:
- bypass_if_highest_quality: true
preferred_protocol: usenet-prefer
tags: []
torrent_delay: 0
usenet_delay: 0
language_profiles:
definitions:
Shows:
languages:
- english
upgrade_until: english
upgrades_allowed: true
quality_profiles:
definitions:
SD/HD:
qualities:
- Bluray-1080p
- members:
- WEBDL-1080p
- WEBRip-1080p
name: WEB 1080p
- HDTV-1080p
- Bluray-720p
- members:
- WEBDL-720p
- WEBRip-720p
name: WEB 720p
- HDTV-720p
- Raw-HD
- Bluray-480p
- DVD
- members:
- WEBDL-480p
- WEBRip-480p
name: WEB 480p
- SDTV
upgrade_until: Bluray-1080p
upgrades_allowed: true
release_profiles:
definitions:
'[Trash] Low Quality Groups':
enable: true
include_preferred_when_renaming: false
indexer: null
must_contain: []
must_not_contain: []
preferred:
- score: -10000
term: /(-BRiNK|-CHX|-GHOSTS|-EVO|-FGT|JFF|PSA|MeGusta|-NERO|nhanc3|Pahe\.ph|Pahe\.in|TBS|-VIDEOHOLE|-worldmkv|-XLF)\b/i
tags: []
'[Trash] Optionals':
enable: true
include_preferred_when_renaming: false
indexer: null
must_contain: []
must_not_contain:
- /^(?=.*(1080|720))(?=.*((x|h)[ ._-]?265|hevc)).*/i
- /\b(-alfaHD|-BAT|-BNd|-C\.A\.A|-Cory|-EXTREME|-FF|-FOXX|-G4RiS|-GUEIRA|-N3G4N|-PD|-PTHome|-RiPER|-RK|-SiGLA|-Tars|-WTV|-Yatogam1|-YusukeFLA|-ZigZag)\b/i
- /\b(-scene)\b/i
- /^(?!.*(HDR|HULU|REMUX))(?=.*\b(DV|Dovi|Dolby[- .]?Vision)\b).*/i
- /\bAV1\b/i
- /^(?!.*(web[ ]dl|-deflate|-inflate))(?=.*([_. ]WEB[_. ]|-CAKES\b|-GGEZ\b|-GGWP\b|-GLHF\b|-GOSSIP\b|-KOGI\b|-PECULATE\b|-SLOT\b)).*/i
preferred:
- score: 15
term: /\bS\d+\b(?!E\d+\b)/i
- score: -10000
term: /(-4P|-4Planet|-AsRequested|-BUYMORE|-CAPTCHA|-Chamele0n|-GEROV|-iNC0GNiTO|-NZBGeek|-Obfuscated|-postbot|-Rakuv|-Scrambled|-WhiteRev|-WRTEAM|-xpost)\b/i
- score: -10000
term: /(?<!\d\.)(1-.+)$/i
- score: -10000
term: /(\[rartv\]|\[rarbg\]|\[eztv\]|\[TGx\])/i
- score: -10000
term: /\s?\ben\b$/i
tags: []
'[Trash] P2P Groups + Repack/Proper':
enable: true
include_preferred_when_renaming: false
indexer: null
must_contain: []
must_not_contain: []
preferred:
- score: 1800
term: /(-deflate|-inflate)\b/i
- score: 1700
term: /(-ABBIE|-AJP69|-APEX|-CasStudio|CRFW|-CtrlHD|-FLUX|\bHONE|-KiNGS|-monkee|NOSiViD|-NTb|-NTG|-PAXA|-PEXA|-QOQ|-RTN|-SiC|T6D|-TOMMY|-ViSUM|-XEPA)\b/i
- score: 1650
term: /(3CTWeB|BLUTONiUM|-BTW|-Chotab|-Cinefeel|-CiT|Coo7|-dB|-DEEP|-END|-ETHiCS|-FC|-Flights|-GNOME|-iJP|-iKA|-iT00NZ|-JETIX|-KHN|-KiMCHI|-LAZY|-MZABI|-NPMS|-NYH|-orbitron|playWEB|PSiG|-ROCCaT|RTFM|-SA89|-SDCC|-SIGMA|-SMURF|-SPiRiT|-TEPES|-TVSmash|-WELP)\b/i
- score: 1600
term: /(-DRACULA|SLiGNOME|T4H|-ViSiON|SwAgLaNdEr)\b/i
- score: 13
term: /(repack3)/i
- score: 12
term: /(repack2)/i
- score: 11
term: /\b(repack|proper)\b/i
tags: []
'[Trash] Release Sources (Streaming Service)':
enable: true
include_preferred_when_renaming: true
indexer: null
must_contain: []
must_not_contain: []
preferred:
- score: 100
term: /\b(amzn|amazon)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 100
term: /\b(atvp|aptv|Apple TV\+)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 95
term: /\b(sho|showtime)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 90
term: /\b(dsnp|dsny|disney|Disney\+)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 90
term: /\b(hmax|hbom|hbo[ ._-]max)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 90
term: /\b(nf|netflix)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 90
term: /\b(qibi|quibi)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 85
term: /\b(hulu)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 85
term: /\b(pcok|Peacock TV)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 75
term: /\b(dcu)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 75
term: /\b(hbo)(?![ ._-]max)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 75
term: /\b(it)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 75
term: /\b(nlz)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 75
term: /\b(pmtp)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 75
term: /\b(red)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 75
term: /\b(stan)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
- score: 75
term: /\b(vdl)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
tags: []
quality:
definitions:
Bluray-1080p:
max: 227.0
min: 50.4
title: null
Bluray-1080p Remux:
max: null
min: 69.1
title: null
Bluray-2160p:
max: null
min: 94.6
title: null
Bluray-2160p Remux:
max: null
min: 204.4
title: null
Bluray-480p:
max: 100.0
min: 2.0
title: null
Bluray-720p:
max: 137.3
min: 17.1
title: null
DVD:
max: 100.0
min: 2.0
title: null
HDTV-1080p:
max: 137.3
min: 15.0
title: null
HDTV-2160p:
max: 350.0
min: 50.4
title: null
HDTV-720p:
max: 67.5
min: 10.0
title: null
Raw-HD:
max: null
min: 4.0
title: null
SDTV:
max: 100.0
min: 2.0
title: null
Unknown:
max: 199.9
min: 1.0
title: null
WEBDL-1080p:
max: 137.3
min: 15.0
title: null
WEBDL-2160p:
max: 350.0
min: 50.4
title: null
WEBDL-480p:
max: 100.0
min: 2.0
title: null
WEBDL-720p:
max: 137.3
min: 10.0
title: null
WEBRip-1080p:
max: 137.3
min: 15.0
title: null
WEBRip-2160p:
max: 350.0
min: 50.4
title: null
WEBRip-480p:
max: 100.0
min: 2.0
title: null
WEBRip-720p:
max: 137.3
min: 10.0
title: null
tags:
definitions: []
ui:
enable_color_impaired_mode: false
first_day_of_week: sunday
long_date_format: day-first
short_date_format: word-month-second
show_relative_dates: true
time_format: twentyfour-hour
week_column_header: day-first
version: 3.0.9.1549
```
Raw data
{
"_id": null,
"home_page": "https://buildarr.github.io",
"name": "buildarr-sonarr",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "buildarr,sonarr",
"author": "Callum Dickinson",
"author_email": "callum.dickinson.nz@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/59/af/0af3aee3bc13b48725e2c5f7547d4807a874c4b7095aa99fcfbf2230ad64/buildarr_sonarr-0.6.4.tar.gz",
"platform": null,
"description": "# Buildarr Sonarr Plugin\n\n[![PyPI](https://img.shields.io/pypi/v/buildarr-sonarr)](https://pypi.org/project/buildarr-sonarr) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/buildarr-sonarr) [![GitHub](https://img.shields.io/github/license/buildarr/buildarr-sonarr)](https://github.com/buildarr/buildarr-sonarr/blob/main/LICENSE) ![Pre-commit hooks](https://github.com/buildarr/buildarr-sonarr/actions/workflows/pre-commit.yml/badge.svg) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nThe Buildarr Sonarr plugin (`buildarr-sonarr`) is a plugin for Buildarr that adds the capability to configure and manage [Sonarr](http://sonarr.tv) instances.\n\nSonarr is a PVR application which downloads, renames and manages the lifecycle of TV shows in your media library. It is capable of scanning for higher quality versions of your media and automatically upgrading them when a suitable version is available.\n\nCurrently, Sonarr V3 is the only supported version. Sonarr V4 support is planned for the future.\n\n## Installation\n\nFrom [version 0.4.0](https://buildarr.github.io/release-notes/#v040-2023-03-31) onwards, the Buildarr Sonarr plugin is now an independent package, developed separately from the core Buildarr package.\n\nWhen using Buildarr as a [standalone application](https://buildarr.github.io/installation/#standalone-application), it can simply be installed using `pip`:\n\n```bash\n$ pip install buildarr buildarr-sonarr\n```\n\nWhen using Buildarr as a [Docker container](https://buildarr.github.io/installation/#docker), the Sonarr plugin is still bundled in the official container (`callum027/buildarr`). There is no need to install it separately.\n\nYou can upgrade, or pin the version of the plugin to a specific version, within the container by setting the `$BUILDARR_INSTALL_PACKAGES` environment variable in the `docker run` command using `--env`/`-e`:\n\n```bash\n-e BUILDARR_INSTALL_PACKAGES=\"buildarr-sonar==<version>\"\n```\n\nIn Buildarr version 0.3.0 and earlier, the Sonarr plugin was vendored within the core Buildarr package. On these versions, it is not necessary to install the Sonarr plugin separately.\n\n## Quick Start\n\nTo use the Sonarr plugin, create a `sonarr` block within `buildarr.yml`, and enter the connection information required for the Buildarr instance to connect to the Sonarr instance you'd like to manage.\n\nBuildarr won't modify anything yet since no configuration has been defined, but you are able to test if Buildarr is able to connect to and authenticate with the Sonarr instance.\n\n```yaml\n---\n\nbuildarr:\n watch_config: true\n\nsonarr:\n hostname: \"localhost\" # Defaults to `sonarr`, or the instance name for instance-specific configs.\n port: 8989 # Defaults to 8989.\n protocol: \"http\" # Defaults to `http`.\n api_key: \"...\" # Optional. If undefined, auto-fetch (authentication must be disabled).\n```\n\nNow try a `buildarr run`. If the output is similar to the below output, Buildarr was able to connect to your Sonarr instance.\n\n```text\n2023-03-29 20:39:50,856 buildarr:1 buildarr.cli.run [INFO] Buildarr version 0.4.0 (log level: INFO)\n2023-03-29 20:39:50,856 buildarr:1 buildarr.cli.run [INFO] Loading configuration file '/config/buildarr.yml'\n2023-03-29 20:39:50,872 buildarr:1 buildarr.cli.run [INFO] Finished loading configuration file\n2023-03-29 20:39:50,874 buildarr:1 buildarr.cli.run [INFO] Loaded plugins: sonarr (0.4.0)\n2023-03-29 20:39:50,875 buildarr:1 buildarr.cli.run [INFO] Loading instance configurations\n2023-03-29 20:39:50,877 buildarr:1 buildarr.cli.run [INFO] Finished loading instance configurations\n2023-03-29 20:39:50,877 buildarr:1 buildarr.cli.run [INFO] Running with plugins: sonarr\n2023-03-29 20:39:50,877 buildarr:1 buildarr.cli.run [INFO] Resolving instance dependencies\n2023-03-29 20:39:50,877 buildarr:1 buildarr.cli.run [INFO] Finished resolving instance dependencies\n2023-03-29 20:39:50,877 buildarr:1 buildarr.cli.run [INFO] Loading secrets file from '/config/secrets.json'\n2023-03-29 20:39:50,886 buildarr:1 buildarr.cli.run [INFO] Finished loading secrets file\n2023-03-29 20:39:50,886 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Checking secrets\n2023-03-29 20:39:50,912 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Connection test successful using cached secrets\n2023-03-29 20:39:50,912 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Finished checking secrets\n2023-03-29 20:39:50,912 buildarr:1 buildarr.cli.run [INFO] Saving updated secrets file to '/config/secrets.json'\n2023-03-29 20:39:50,914 buildarr:1 buildarr.cli.run [INFO] Finished saving updated secrets file\n2023-03-29 20:39:50,914 buildarr:1 buildarr.cli.run [INFO] Updating configuration on remote instances\n2023-03-29 20:39:50,914 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Getting remote configuration\n2023-03-29 20:39:51,406 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Finished getting remote configuration\n2023-03-29 20:39:51,463 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Updating remote configuration\n2023-03-29 20:39:52,019 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Remote configuration is up to date\n2023-03-29 20:39:52,019 buildarr:1 buildarr.cli.run [INFO] <sonarr> (default) Finished updating remote configuration\n2023-03-29 20:39:52,019 buildarr:1 buildarr.cli.run [INFO] Finished updating configuration on remote instances\n```\n\n## Configuring your Sonarr instance\n\nThe following sections cover comprehensive configuration of a Sonarr instance.\n\nNote that these documents do not show how you *should* configure a Sonarr instance. Rather, they show how you *can* configure a Sonarr instance the way you want with Buildarr. For more information on how to optimally configure Sonarr, you can refer to the excellent guides from [WikiArr](https://wiki.servarr.com/sonarr) and [TRaSH-Guides](https://trash-guides.info/Sonarr/).\n\n* [Host Configuration](https://buildarr.github.io/plugins/sonarr/configuration/host)\n* [Media Management](https://buildarr.github.io/plugins/sonarr/configuration/media-management)\n* Profiles\n * [Quality Profiles](https://buildarr.github.io/plugins/sonarr/configuration/profiles/quality)\n - [Language Profiles](https://buildarr.github.io/plugins/sonarr/configuration/profiles/language)\n - [Delay Profiles](https://buildarr.github.io/plugins/sonarr/configuration/profiles/delay)\n - [Release Profiles](https://buildarr.github.io/plugins/sonarr/configuration/profiles/release)\n- [Quality](https://buildarr.github.io/plugins/sonarr/configuration/quality)\n- [Indexers](https://buildarr.github.io/plugins/sonarr/configuration/indexers)\n- [Download Clients](https://buildarr.github.io/plugins/sonarr/configuration/download-clients)\n- [Import Lists](https://buildarr.github.io/plugins/sonarr/configuration/import-lists)\n- [Connect](https://buildarr.github.io/plugins/sonarr/configuration/connect)\n- [Metadata](https://buildarr.github.io/plugins/sonarr/configuration/metadata)\n- [Tags](https://buildarr.github.io/plugins/sonarr/configuration/tags)\n- [General](https://buildarr.github.io/plugins/sonarr/configuration/general)\n- [UI](https://buildarr.github.io/plugins/sonarr/configuration/ui)\n\n## Dumping an existing Sonarr instance configuration\n\nBuildarr is capable of dumping a running Sonarr instance's configuration.\n\n```bash\n$ buildarr sonarr dump-config http://localhost:8989 > sonarr.yml\nSonarr instance API key: <Paste API key here>\n```\n\nThe dumped YAML object can be placed directly under the `sonarr` configuration block, or used as an [instance-specific configuration](https://buildarr.github.io/configuration/#multiple-instances-of-the-same-type).\n\nMost values are explicitly defined in this dumped configuration, ensuring that when used with Buildarr, the configuration will always remain static.\n\n```yaml\napi_key: 1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d\nhostname: localhost\nport: 8989\nprotocol: http\nsettings:\n connect:\n definitions:\n Trakt:\n access_token: 1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b\n auth_user: example\n expires: '2023-05-10T15:34:08.117451+00:00'\n notification_triggers:\n include_health_warnings: false\n on_application_update: false\n on_episode_file_delete: true\n on_episode_file_delete_for_upgrade: true\n on_grab: false\n on_health_issue: false\n on_import: true\n on_rename: false\n on_series_delete: true\n on_upgrade: true\n refresh_token: 1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b\n tags: []\n download_clients:\n definitions:\n Transmission:\n add_paused: false\n category: sonarr\n directory: null\n enable: true\n host: transmission\n older_priority: last\n password: null\n port: 9091\n priority: 1\n recent_priority: last\n remove_completed_downloads: true\n remove_failed_downloads: true\n tags: []\n url_base: /transmission/\n use_ssl: false\n username: null\n enable_completed_download_handling: true\n redownload_failed: true\n remote_path_mappings:\n definitions: []\n general:\n analytics:\n send_anonymous_usage_data: true\n backup:\n folder: Backups\n interval: 7\n retention: 28\n host:\n bind_address: '*'\n instance_name: Sonarr (Example)\n port: 8989\n ssl_port: 9898\n url_base: null\n use_ssl: false\n logging:\n log_level: INFO\n proxy:\n bypass_proxy_for_local_addresses: true\n enable: false\n hostname: null\n ignored_addresses: []\n password: null\n port: 8080\n proxy_type: http\n username: null\n security:\n authentication: none\n certificate_validation: enabled\n password: null\n username: null\n updates:\n automatic: false\n branch: main\n mechanism: docker\n script_path: null\n import_lists:\n definitions: {}\n indexers:\n definitions: {}\n maximum_size: 0\n minimum_age: 0\n retention: 0\n rss_sync_interval: 15\n media_management:\n analyze_video_files: true\n anime_episode_format: '{Series TitleYear} - S{season:00}E{episode:00} - {absolute:000}\n - {Episode CleanTitle} {[Preferred Words]} {[Quality Full]} {[MediaInfo VideoDynamicRangeType]}\n [{MediaInfo VideoBitDepth}bit] {[MediaInfo VideoCodec]} [{Mediainfo AudioCodec}\n { Mediainfo AudioChannels}]{MediaInfo AudioLanguages} {[Release Group]} - Default'\n change_file_date: none\n chmod_folder: drwxr-xr-x\n chown_group: null\n create_empty_series_folders: false\n daily_episode_format: '{Series TitleYear} - {Air-Date} - {Episode CleanTitle}\n - {[Preferred Words]} {[Quality Full]} {[MediaInfo VideoDynamicRangeType]} [{MediaInfo\n VideoBitDepth}bit] {[MediaInfo VideoCodec]} [{Mediainfo AudioCodec} {Mediainfo\n AudioChannels}] {[MediaInfo AudioLanguages]} {[Release Group]} - Default'\n delete_empty_folders: false\n episode_title_required: always\n import_extra_files: false\n minimum_free_space: 100\n multiepisode_style: range\n propers_and_repacks: do-not-prefer\n recycling_bin: null\n recycling_bin_cleanup: 7\n rename_episodes: true\n replace_illegal_characters: true\n rescan_series_folder_after_refresh: always\n root_folders: []\n season_folder_format: Season {season:00}\n series_folder_format: '{Series TitleYear} [imdbid-{ImdbId}]'\n set_permissions: false\n skip_free_space_check: false\n specials_folder_format: Specials\n standard_episode_format: '{Series TitleYear} - S{season:00}E{episode:00} - {Episode\n CleanTitle} - {[Preferred Words]} {[Quality Full]} {[MediaInfo VideoDynamicRangeType]}\n [{MediaInfo VideoBitDepth}bit] {[MediaInfo VideoCodec]} [{Mediainfo AudioCodec}\n {Mediainfo AudioChannels}] {[MediaInfo AudioLanguages]} {[Release Group]} -\n Default'\n use_hardlinks: true\n metadata:\n kodi_emby:\n enable: false\n episode_images: true\n episode_metadata: true\n season_images: true\n series_images: true\n series_metadata: true\n series_metadata_url: true\n roksbox:\n enable: false\n episode_images: true\n episode_metadata: true\n season_images: true\n series_images: true\n wdtv:\n enable: false\n episode_images: true\n episode_metadata: true\n season_images: true\n series_images: true\n profiles:\n delay_profiles:\n definitions:\n - bypass_if_highest_quality: true\n preferred_protocol: usenet-prefer\n tags: []\n torrent_delay: 0\n usenet_delay: 0\n language_profiles:\n definitions:\n Shows:\n languages:\n - english\n upgrade_until: english\n upgrades_allowed: true\n quality_profiles:\n definitions:\n SD/HD:\n qualities:\n - Bluray-1080p\n - members:\n - WEBDL-1080p\n - WEBRip-1080p\n name: WEB 1080p\n - HDTV-1080p\n - Bluray-720p\n - members:\n - WEBDL-720p\n - WEBRip-720p\n name: WEB 720p\n - HDTV-720p\n - Raw-HD\n - Bluray-480p\n - DVD\n - members:\n - WEBDL-480p\n - WEBRip-480p\n name: WEB 480p\n - SDTV\n upgrade_until: Bluray-1080p\n upgrades_allowed: true\n release_profiles:\n definitions:\n '[Trash] Low Quality Groups':\n enable: true\n include_preferred_when_renaming: false\n indexer: null\n must_contain: []\n must_not_contain: []\n preferred:\n - score: -10000\n term: /(-BRiNK|-CHX|-GHOSTS|-EVO|-FGT|JFF|PSA|MeGusta|-NERO|nhanc3|Pahe\\.ph|Pahe\\.in|TBS|-VIDEOHOLE|-worldmkv|-XLF)\\b/i\n tags: []\n '[Trash] Optionals':\n enable: true\n include_preferred_when_renaming: false\n indexer: null\n must_contain: []\n must_not_contain:\n - /^(?=.*(1080|720))(?=.*((x|h)[ ._-]?265|hevc)).*/i\n - /\\b(-alfaHD|-BAT|-BNd|-C\\.A\\.A|-Cory|-EXTREME|-FF|-FOXX|-G4RiS|-GUEIRA|-N3G4N|-PD|-PTHome|-RiPER|-RK|-SiGLA|-Tars|-WTV|-Yatogam1|-YusukeFLA|-ZigZag)\\b/i\n - /\\b(-scene)\\b/i\n - /^(?!.*(HDR|HULU|REMUX))(?=.*\\b(DV|Dovi|Dolby[- .]?Vision)\\b).*/i\n - /\\bAV1\\b/i\n - /^(?!.*(web[ ]dl|-deflate|-inflate))(?=.*([_. ]WEB[_. ]|-CAKES\\b|-GGEZ\\b|-GGWP\\b|-GLHF\\b|-GOSSIP\\b|-KOGI\\b|-PECULATE\\b|-SLOT\\b)).*/i\n preferred:\n - score: 15\n term: /\\bS\\d+\\b(?!E\\d+\\b)/i\n - score: -10000\n term: /(-4P|-4Planet|-AsRequested|-BUYMORE|-CAPTCHA|-Chamele0n|-GEROV|-iNC0GNiTO|-NZBGeek|-Obfuscated|-postbot|-Rakuv|-Scrambled|-WhiteRev|-WRTEAM|-xpost)\\b/i\n - score: -10000\n term: /(?<!\\d\\.)(1-.+)$/i\n - score: -10000\n term: /(\\[rartv\\]|\\[rarbg\\]|\\[eztv\\]|\\[TGx\\])/i\n - score: -10000\n term: /\\s?\\ben\\b$/i\n tags: []\n '[Trash] P2P Groups + Repack/Proper':\n enable: true\n include_preferred_when_renaming: false\n indexer: null\n must_contain: []\n must_not_contain: []\n preferred:\n - score: 1800\n term: /(-deflate|-inflate)\\b/i\n - score: 1700\n term: /(-ABBIE|-AJP69|-APEX|-CasStudio|CRFW|-CtrlHD|-FLUX|\\bHONE|-KiNGS|-monkee|NOSiViD|-NTb|-NTG|-PAXA|-PEXA|-QOQ|-RTN|-SiC|T6D|-TOMMY|-ViSUM|-XEPA)\\b/i\n - score: 1650\n term: /(3CTWeB|BLUTONiUM|-BTW|-Chotab|-Cinefeel|-CiT|Coo7|-dB|-DEEP|-END|-ETHiCS|-FC|-Flights|-GNOME|-iJP|-iKA|-iT00NZ|-JETIX|-KHN|-KiMCHI|-LAZY|-MZABI|-NPMS|-NYH|-orbitron|playWEB|PSiG|-ROCCaT|RTFM|-SA89|-SDCC|-SIGMA|-SMURF|-SPiRiT|-TEPES|-TVSmash|-WELP)\\b/i\n - score: 1600\n term: /(-DRACULA|SLiGNOME|T4H|-ViSiON|SwAgLaNdEr)\\b/i\n - score: 13\n term: /(repack3)/i\n - score: 12\n term: /(repack2)/i\n - score: 11\n term: /\\b(repack|proper)\\b/i\n tags: []\n '[Trash] Release Sources (Streaming Service)':\n enable: true\n include_preferred_when_renaming: true\n indexer: null\n must_contain: []\n must_not_contain: []\n preferred:\n - score: 100\n term: /\\b(amzn|amazon)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 100\n term: /\\b(atvp|aptv|Apple TV\\+)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 95\n term: /\\b(sho|showtime)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 90\n term: /\\b(dsnp|dsny|disney|Disney\\+)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 90\n term: /\\b(hmax|hbom|hbo[ ._-]max)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 90\n term: /\\b(nf|netflix)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 90\n term: /\\b(qibi|quibi)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 85\n term: /\\b(hulu)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 85\n term: /\\b(pcok|Peacock TV)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 75\n term: /\\b(dcu)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 75\n term: /\\b(hbo)(?![ ._-]max)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 75\n term: /\\b(it)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 75\n term: /\\b(nlz)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 75\n term: /\\b(pmtp)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 75\n term: /\\b(red)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 75\n term: /\\b(stan)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n - score: 75\n term: /\\b(vdl)\\b(?=[ ._-]web[ ._-]?(dl|rip)\\b)/i\n tags: []\n quality:\n definitions:\n Bluray-1080p:\n max: 227.0\n min: 50.4\n title: null\n Bluray-1080p Remux:\n max: null\n min: 69.1\n title: null\n Bluray-2160p:\n max: null\n min: 94.6\n title: null\n Bluray-2160p Remux:\n max: null\n min: 204.4\n title: null\n Bluray-480p:\n max: 100.0\n min: 2.0\n title: null\n Bluray-720p:\n max: 137.3\n min: 17.1\n title: null\n DVD:\n max: 100.0\n min: 2.0\n title: null\n HDTV-1080p:\n max: 137.3\n min: 15.0\n title: null\n HDTV-2160p:\n max: 350.0\n min: 50.4\n title: null\n HDTV-720p:\n max: 67.5\n min: 10.0\n title: null\n Raw-HD:\n max: null\n min: 4.0\n title: null\n SDTV:\n max: 100.0\n min: 2.0\n title: null\n Unknown:\n max: 199.9\n min: 1.0\n title: null\n WEBDL-1080p:\n max: 137.3\n min: 15.0\n title: null\n WEBDL-2160p:\n max: 350.0\n min: 50.4\n title: null\n WEBDL-480p:\n max: 100.0\n min: 2.0\n title: null\n WEBDL-720p:\n max: 137.3\n min: 10.0\n title: null\n WEBRip-1080p:\n max: 137.3\n min: 15.0\n title: null\n WEBRip-2160p:\n max: 350.0\n min: 50.4\n title: null\n WEBRip-480p:\n max: 100.0\n min: 2.0\n title: null\n WEBRip-720p:\n max: 137.3\n min: 10.0\n title: null\n tags:\n definitions: []\n ui:\n enable_color_impaired_mode: false\n first_day_of_week: sunday\n long_date_format: day-first\n short_date_format: word-month-second\n show_relative_dates: true\n time_format: twentyfour-hour\n week_column_header: day-first\nversion: 3.0.9.1549\n```\n",
"bugtrack_url": null,
"license": "GPL-3.0-or-later",
"summary": "Sonarr PVR plugin for Buildarr",
"version": "0.6.4",
"project_urls": {
"Changes": "https://buildarr.github.io/plugins/sonarr/release-notes",
"Documentation": "https://buildarr.github.io/plugins/sonarr",
"Homepage": "https://buildarr.github.io",
"Issue Tracker": "https://github.com/buildarr/buildarr-sonarr/issues",
"Repository": "https://github.com/buildarr/buildarr-sonarr"
},
"split_keywords": [
"buildarr",
"sonarr"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0354d8719f8e40654d42610446a7b2285db20383b9737c3b926b026405f559b3",
"md5": "36822de711b723e8c37cc5ebaf88bbe5",
"sha256": "090543e097ac02299623c371b59022740746ded1ef3105d17304385f98d8e378"
},
"downloads": -1,
"filename": "buildarr_sonarr-0.6.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "36822de711b723e8c37cc5ebaf88bbe5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 111208,
"upload_time": "2024-03-02T02:36:25",
"upload_time_iso_8601": "2024-03-02T02:36:25.436847Z",
"url": "https://files.pythonhosted.org/packages/03/54/d8719f8e40654d42610446a7b2285db20383b9737c3b926b026405f559b3/buildarr_sonarr-0.6.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "59af0af3aee3bc13b48725e2c5f7547d4807a874c4b7095aa99fcfbf2230ad64",
"md5": "5e605190fd7862cb41a7799b2b33e392",
"sha256": "1ecbc6a230cd37cbcc57b45e2bd43a581646c5fd9b4661cd1eef381662e28317"
},
"downloads": -1,
"filename": "buildarr_sonarr-0.6.4.tar.gz",
"has_sig": false,
"md5_digest": "5e605190fd7862cb41a7799b2b33e392",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 90089,
"upload_time": "2024-03-02T02:36:26",
"upload_time_iso_8601": "2024-03-02T02:36:26.661855Z",
"url": "https://files.pythonhosted.org/packages/59/af/0af3aee3bc13b48725e2c5f7547d4807a874c4b7095aa99fcfbf2230ad64/buildarr_sonarr-0.6.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-02 02:36:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "buildarr",
"github_project": "buildarr-sonarr",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "buildarr-sonarr"
}