Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Readarr support #84

Merged
merged 51 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
c0b2233
initial commit of readarr
marksie1988 Aug 15, 2021
a7502f7
add docs & update version
marksie1988 Aug 15, 2021
82e1d6b
feat: added base api, added env variables to dev
marksie1988 Aug 21, 2021
c9a9a9a
moved sonarr to new base api, updated base apis
marksie1988 Aug 21, 2021
dfa7adc
Updated more of the base API
marksie1988 Aug 23, 2021
cfc8be0
update URLs for all request_api
marksie1988 Aug 23, 2021
081b8eb
added history and blacklist actions to base
marksie1988 Sep 11, 2021
23879f8
merge master
marksie1988 Sep 11, 2021
601e097
ci: update ci and refactor code
marksie1988 Nov 5, 2021
6817bfd
devcontainer update
marksie1988 Nov 5, 2021
635673f
fix: blacklist changed to blocklist
marksie1988 Nov 5, 2021
2b30722
feat: del_root_folder added
marksie1988 Nov 5, 2021
dc22323
feat: add get_qualit_profiles
marksie1988 Nov 5, 2021
7157c8c
feat: added get_indexer
marksie1988 Nov 5, 2021
89cec78
feat: del_indexer added
marksie1988 Nov 5, 2021
781e6a1
feat: added get_task
marksie1988 Nov 5, 2021
e575ce9
feat: add ui / host config
marksie1988 Nov 5, 2021
e8e18c2
feat: add config naming
marksie1988 Nov 5, 2021
0195f65
feat: add notification api
marksie1988 Nov 5, 2021
bfb0bf6
feat: remote path mapping added
marksie1988 Nov 5, 2021
5f9d425
feat: add tagging api
marksie1988 Nov 5, 2021
812d524
feat: added download client api
marksie1988 Nov 5, 2021
aef3cd3
ci: split pr and release checks, move to github release notes
marksie1988 Nov 9, 2021
472f7f0
feat: add import lists api
marksie1988 Nov 9, 2021
225c7b5
feat: add lookup_author
marksie1988 Nov 9, 2021
ed501f4
feat: del_author added
marksie1988 Nov 9, 2021
9e26248
feat: added ability to add books
marksie1988 Nov 16, 2021
3564839
refactor: extract request_url as repeated code
marksie1988 Nov 16, 2021
dd44c8e
refactor: extract request_url as repeated code
marksie1988 Nov 16, 2021
2c79cd6
feat(readarr): Add ability to add Author, Add Exceptions to connection
marksie1988 Jan 7, 2022
e9ee727
refactor(request): remove todo and add docstring
marksie1988 Jan 7, 2022
db75142
feat(readarr): add root folder
marksie1988 Jan 7, 2022
03207a9
feat(base): Get media management
marksie1988 Jan 7, 2022
765488a
feat(base): Get Quality Definition
marksie1988 Jan 7, 2022
17ccffc
feat(readarr): Get metadata provider
marksie1988 Jan 7, 2022
ba8292b
feat(readarr): Get cutoff
marksie1988 Jan 7, 2022
45ed28d
feat(readarr): Get cutoff
marksie1988 Jan 7, 2022
490efa5
feat(readarr): Update Book
marksie1988 Jan 7, 2022
07e09d0
feat(readarr): Update Author
marksie1988 Jan 7, 2022
7bd63a6
feat(base): get download client schemas
marksie1988 Jan 7, 2022
eb230da
feat(base): update indexer
marksie1988 Jan 7, 2022
93547a4
feat(base): update metadataprovider
marksie1988 Jan 7, 2022
2661ed4
feat(base): update quality definitions
marksie1988 Jan 7, 2022
0f9aed4
feat(base): update quality profiles
marksie1988 Jan 7, 2022
ef2bda2
feat(base): delete quality profile
marksie1988 Jan 7, 2022
2a44e2f
refactor: amend recommended changes from review
marksie1988 Jan 9, 2022
bf92af6
fix(readarr): update default profiles used
marksie1988 Jan 9, 2022
1ccffb5
fix(readarr): remove duplicated function
marksie1988 Jan 9, 2022
161e1db
chore: Add comments for each endpoint
marksie1988 Jan 9, 2022
427d0f3
chore(docs): Update documentation & include sphinx with dev tools
marksie1988 Jan 11, 2022
f06f951
patch: remove master conflicts
marksie1988 Jan 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .devcontainer/example-env
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
RADARR_HOST=
RADARR_API_KEY=

SONARR_HOST=
SONARR_API_KEY=

READARR_HOST=
READARR_API_KEY=
6 changes: 4 additions & 2 deletions .devcontainer/recommended-devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"yzhang.markdown-all-in-one",
"tabnine.tabnine-vscode",
"rebornix.project-snippets",
"njpwerner.autodocstring"
"njpwerner.autodocstring",
"sourcery.sourcery"
],
"settings": {
"files.eol": "\n",
Expand All @@ -27,5 +28,6 @@
"files.trimTrailingWhitespace": true,
"python.formatting.provider": "black",
"autoDocstring.docstringFormat": "google"
}
},
"postCreateCommand": "poetry install && poetry run pre-commit install -t pre-commit -t commit-msg"
}
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[flake8]
max-line-length = 88
max-complexity = 18
exclude = build/*
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,
ignore = E402, W503
ignore = E203, E266, E501, W503
select = B,C,E,F,W,T4
50 changes: 0 additions & 50 deletions .github/release-changelog-builder.json

This file was deleted.

27 changes: 27 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# release.yml
changelog:
categories:
- title: 💥 Breaking Changes
labels:
- semver/major
- flag/breaking changes
- title: 🚀 Exciting New Features
labels:
- semver/minor
- type/feature
- title: 🐛 Patches & Bug Fixes
labels:
- semver/patch
- type/bug
- title: 📚 Documentation
labels:
- type/docs
- title: 📔 Language
labels:
- type/language
- title: ⬆️ Dependencies
labels:
- type/dependencies
- title: Other Changes
labels:
- "*"
2 changes: 1 addition & 1 deletion .github/workflows/branching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Create Issue Branch
uses: robvanderleek/create-issue-branch@master
uses: robvanderleek/create-issue-branch@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99 changes: 0 additions & 99 deletions .github/workflows/ci_workflow.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Greetings

on: [pull_request, issues]

jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: 'Hello @${{ github.actor }}, thank you for submitting a PR! We will respond as soon as possible.'
issue-message: |
Hello @${{ github.actor }}, thank you for your interest in our work!

If this is a bug report, please provide screenshots and **minimum viable code to reproduce your issue**, otherwise we can not help you.{% endraw %}
56 changes: 56 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: pr

on:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
checkVersion:
if: github.event_name == 'pull_request'
name: Check version updated
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Check if Python files changed
id: changed-files
uses: tj-actions/changed-files@v9
with:
files: |
.py
pyproject.toml
- name: Run step if any of the listed files above change
if: steps.changed-files.outputs.any_changed == 'true'
run: |
echo "One or more files has changed."
- name: Check package version
if: steps.changed-files.outputs.any_changed == 'true'
uses: dudo/tag_check@v1.1.1
with:
git_tag_prefix: v
code-quality:
name: 📊 Check code quality
runs-on: ubuntu-latest
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
- name: Install dependencies with Poetry
run: poetry install
- name: 📦 Check imports
run: poetry run isort --diff
- name: 🏴 Check Black formatting
run: poetry run black --check
- name: ❄️ Check flake8 formatting
run: poetry run flake8
- name: Check static type
run: poetry run mypy
- name: Check docstrings
run: poetry run interrogate
74 changes: 74 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: release

on:
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
code-quality:
name: 📊 Check code quality
runs-on: ubuntu-latest
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
- name: Install dependencies with Poetry
run: poetry install
- name: 📦 Check imports
run: poetry run isort --diff
- name: 🏴 Check Black formatting
run: poetry run black --check
- name: ❄️ Check flake8 formatting
run: poetry run flake8
- name: Check static type
run: poetry run mypy
- name: Check docstrings
run: poetry run interrogate

build-n-publish:
name: Create release and publish 🐍 distribution 📦 to PyPI
name: Create Release
if: startsWith(github.ref, 'refs/tags/')
needs: [code-quality]
runs-on: ubuntu-latest
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v2
- name: 🛎️ Create release
id: create_release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
prerelease: ${{ contains(needs.tag_version.outputs.tag, '-rc') || contains(needs.tag_version.outputs.tag, '-b') || contains(needs.tag_version.outputs.tag, '-a') }}
- name: 🏷️ Update latest tag
uses: EndBug/latest-tag@latest

# PyPi release steps
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Poetry
uses: snok/install-poetry@v1.1.1
- name: Cache Poetry virtualenv
uses: actions/cache@v1
id: cache
with:
path: ~/.virtualenvs
key: poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install Dependencies
run: poetry install
if: steps.cache.outputs.cache-hit != 'true'
- name: Build
run: poetry build
- name: Publish distribution 📦 to PyPI
run: poetry publish -u __token__ -p ${{ secrets.pypi_password }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ build
.devcontainer/*
!.devcontainer/recommended-devcontainer.json
!.devcontainer/recommended-Dockerfile
!.devcontainer/example-env
Loading