App Submission: Readarr (#712)

Co-authored-by: nmfretz <nmfretz@gmail.com>
This commit is contained in:
Teddy Hoff 2024-02-23 01:46:50 -05:00 committed by GitHub
parent 08c15bc183
commit 8e5868bb6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 83 additions and 0 deletions

View File

View File

@ -0,0 +1,32 @@
version: "3.7"
services:
app_proxy:
environment:
APP_HOST: readarr_server_1
APP_PORT: 8787
PROXY_AUTH_WHITELIST: "/api/*"
server:
image: linuxserver/readarr:0.3.16-nightly@sha256:e0393656789fd839d05a6719b079984740652c050e2fc19083e5111e7905850c
environment:
- PUID=1000
- PGID=1000
volumes:
- ${APP_DATA_DIR}/data/config:/config
- ${UMBREL_ROOT}/data/storage/downloads:/downloads
restart: on-failure
mac:
image: getumbrel/media-app-configurator:v1.2.0@sha256:6aa568b53f6743dc4a7b3212f97b9d4ca78800ede5eadc0e4b80c7f3af50eda3
user: "1000:1000"
restart: on-failure
volumes:
- ${APP_DATA_DIR}/data/config:/config
- ${UMBREL_ROOT}/data/storage/downloads:/downloads
environment:
APP_ID: "readarr"
APP_URL: "http://readarr_server_1:8787"
TRANSMISSION_HOST: "transmission_server_1"
TRANSMISSION_PORT: 9091
ROOT_FOLDER: "/downloads/books"

24
readarr/hooks/post-install Executable file
View File

@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
if "${UMBREL_ROOT}/scripts/app" ls-installed | grep --quiet 'prowlarr'
then
CONFIG_FILE="${APP_DATA_DIR}/data/config/config.xml"
# Wait for the config.xml file to exist
# Wait for the API key property (<ApiKey>) to exist in the config file
for attempt in $(seq 1 20); do
if [[ -f "${CONFIG_FILE}" ]] && cat "${CONFIG_FILE}" | grep --quiet '<ApiKey>'; then
echo "config.xml file exists and <ApiKey> xml key exists..."
# Restart Prowlarr to automatically set this up as an app
"${UMBREL_ROOT}/scripts/app" restart prowlarr
exit
fi
sleep 1
done
>&2 echo "Error: Failed to locate <ApiKey> inside: ${CONFIG_FILE}"
exit 1
fi

27
readarr/umbrel-app.yml Normal file
View File

@ -0,0 +1,27 @@
manifestVersion: 1.1
id: readarr
category: media
name: Readarr
version: "0.3.16"
tagline: Your book collection manager
description: >-
Readarr is an ebook and audiobook collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new books from your favorite authors and will grab, sort, and rename them. Note that only one type of a given book is supported. If you want both an audiobook and ebook of a given book you will need multiple instances.
developer: Readarr
website: https://readarr.com/
dependencies:
- transmission
repo: https://github.com/Readarr/Readarr
support: https://github.com/Readarr/Readarr/issues
port: 8787
gallery:
- 1.jpg
- 2.jpg
- 3.jpg
path: ""
defaultUsername: ""
defaultPassword: ""
torOnly: false
permissions:
- STORAGE_DOWNLOADS
submitter: Choff3
submission: https://github.com/getumbrel/umbrel-apps/pull/712