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

v3.0 #59

Merged
merged 22 commits into from
Dec 19, 2022
Merged

v3.0 #59

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2a7171d
test
Seriox Aug 15, 2022
e6304f7
Multilanguage Support added
Seriox Aug 16, 2022
4b565af
Create lt-lt.yml
StarvingDeveloper Oct 5, 2022
8d51b6a
feat(books): add Readarr support
aymanbagabas Oct 11, 2022
9dc4fc7
Merge pull request #58 from aymanbagabas/readarr
toddrob99 Oct 13, 2022
e6da5e4
Merge pull request #57 from StarvingDeveloper/patch-1
toddrob99 Oct 13, 2022
762c5b8
Merge branch 'beta' into main
toddrob99 Oct 13, 2022
aa659c1
Merge pull request #52 from Seriox/main
toddrob99 Oct 13, 2022
3df9caa
code formatting w/ black
toddrob99 Oct 13, 2022
7531c36
fix: help command response
toddrob99 Oct 13, 2022
d951c83
fix: help crashes if readarr settings are missing
toddrob99 Oct 13, 2022
cc7f1cc
romanian grammar adjustments
toddrob99 Oct 14, 2022
611616c
fix(readarr): forcibly search book
aymanbagabas Oct 14, 2022
673ff39
Merge pull request #60 from aymanbagabas/search-book
toddrob99 Oct 22, 2022
e448eac
code formatting w/ black
toddrob99 Oct 22, 2022
c19f23d
chore(ci): update docker action components
toddrob99 Oct 22, 2022
b7495e8
fix: prevent double search when adding book
toddrob99 Oct 31, 2022
da76cbd
Updated to sonarr api v3 in order to work in sonarr 4.x
vinimk Dec 8, 2022
7a9bd99
Merge pull request #64 from vinimk/sonarr-v3-api
toddrob99 Dec 15, 2022
0cb2433
fix: patch malformed api url for language profile
toddrob99 Dec 15, 2022
935ebc5
Remove Sonarr language profile support
toddrob99 Dec 15, 2022
f95f25f
fix: continue using legacy api for Sonarr v3
toddrob99 Dec 16, 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: 4 additions & 4 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ jobs:
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
-
name: Get Version
id: get_version
uses: battila7/get-version-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ jobs:
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
-
name: Get Version
id: get_version
uses: battila7/get-version-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
### By Todd Roberts
https://github.com/toddrob99/searcharr

This bot allows users to add movies to Radarr and series to Sonarr via Telegram messaging app.
This bot allows users to add movies to Radarr, series to Sonarr, and books to Readarr via Telegram messaging app.

## Setup & Run

Expand All @@ -20,6 +20,7 @@ You are required to update the following settings, at minimum:
* Telegram Bot > Token (see [Telegram Bot Setup Instructions](https://core.telegram.org/bots#6-botfather))
* Sonarr > URL, API Key, Quality Profile ID
* Radarr > URL, API Key, Quality Profile ID
* Readarr > URL, API Key, Quality Profile ID, Metadata Profile ID

### Docker & Docker-Compose

Expand All @@ -45,9 +46,9 @@ Send a private message to your bot saying `/start <password>` where `<password>`

**Double Caution**: Do not authenticate as an admin in a group chat. Always use a private message with your bot.

### Search & Add a Series to Sonarr or a Movie to Radarr
### Search & Add a Series to Sonarr, a Movie to Radarr, or a Book to Readarr

Send the bot a (private or group) message saying `/series <title>` or `/movie <title>` (replace with custom command aliases, as configured in `settings.py`). The bot will reply with information about the first result, along with buttons to move forward and back within the search results, pop out to tvdb, TMDB, or IMDb, add the current series/movie to Sonarr/Radarr, or cancel the search. When you click the button to add the series/movie to Sonarr/Radarr, the bot will ask what root folder to put the series/movie in, then what quality profile to use--unless you have only one root folder or quality profile enabled in Searcharr settings, in which case it will skip those steps and add the series/movie straight away.
Send the bot a (private or group) message saying `/series <title>`, `/movie <title>`, or `/book <title>` (replace with custom command aliases, as configured in `settings.py`). The bot will reply with information about the first result, along with buttons to move forward and back within the search results, pop out to tvdb, TMDB, or IMDb, or Goodreads for books, add the current series/movie/book to Sonarr/Radarr/Readarr, or cancel the search. When you click the button to add the series/movie/book to Sonarr/Radarr/Readarr, the bot will ask what root folder to put the series/movie/book in, then what quality profile to use--unless you have only one root folder or quality profile enabled in Searcharr settings, in which case it will skip those steps and add the series/movie straight away.

### Manage Users

Expand Down
9 changes: 9 additions & 0 deletions lang/ca-es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ language_label: Català
movie: pel·lícula
series: sèrie
season: temporada
book: llibre
title: títol
title_here: títol aquí
password: contrasenya
Expand All @@ -25,6 +26,7 @@ convo_not_found: He rebut la teva ordre, però no reconec la conversa. Sisplau,
search_canceled: Cerca cancel·lada!
no_root_folders: "Error afegint {kind}: no hi han carpetes arrel per {app}! Sisplau, comprova la teva configuració de Searcharr i torna a intentar-ho."
no_quality_profiles: "Error afegint {kind}: no hi han perfils de qualitat activats per {app}! Sisplau, comprova la teva configuració de Searcharr i torna a intentar-ho."
no_language_profiles: "Error afegint {kind}: no hi han perfils de llenguatge activats per {app}! Sisplau, comprova la teva configuració de Searcharr i torna a intentar-ho."
all_seasons: Totes les Temporades
first_season: Només la Primera Temporada
latest_season: Només la Última Temporada
Expand All @@ -42,6 +44,7 @@ add_tag_button: "Afegir Etiqueta: {tag}"
finished_tagging_button: Etiquetat Completat
monitor_button: Monitoratge {option}
add_quality_button: "Afegir Qualitat: {quality}"
add_language_button: "Afegir llenguatge: {language}"
add_path_button: Afegir a {path}
add_button: "{kind} afegit!"
already_added_button: "Ja Afegit!"
Expand All @@ -57,3 +60,9 @@ help_sonarr: Utilitza {series_commands} per afegir una sèrie a Sonarr.
help_radarr: Utilitza {movie_commands} per afegir una pel·lícula a Radarr.
no_features: Ho sento, però totes les meves funcions estàn desactivades temporalment.
admin_help: Com que ets administrador, també pots utilitzar {commands} per gestionar els usuaris.
readarr_disabled: Ho sento, però el suport per llibres està desactivat.
include_book_title_in_cmd: Sisplau, inclou el títol del llibre en la ordre, per exemple {commands}
no_matching_books: Ho sento, però no he trobat cap llibre que compleixi el criteri de cerca.
help_readarr: Utilitza {book_commands} per afegir una llibre a Readarr.
no_metadata_profiles: "Error afegint {kind}: no hi han perfils de metadata activats per {app}! Sisplau, comprova la teva configuració de Searcharr i torna a intentar-ho."
add_metadata_button: "Afegir Metadata: {metadata}"
9 changes: 9 additions & 0 deletions lang/de-de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ language_label: German
movie: Film
series: Serie
season: Staffel
book: Buchen
title: Title
title_here: Titel hier
password: Kennwort
Expand All @@ -25,6 +26,7 @@ convo_not_found: Ich habe Ihren Befehl erhalten, aber ich erkenne das Gespräch
search_canceled: Suche abgebrochen!
no_root_folders: "Fehler beim Hinzufügen {kind}: keine Root-Ordner aktiviert für {app}! Bitte überprüfen Sie Ihre Searcharr-Konfiguration und versuchen Sie es erneut."
no_quality_profiles: "Fehler beim Hinzufügen {kind}: keine Qualitätsprofile aktiviert für {app}! Bitte überprüfen Sie Ihre Searcharr-Konfiguration und versuchen Sie es erneut."
no_language_profiles: "Fehler beim Hinzufügen {kind}: keine Sprachprofil aktiviert für {app}! Bitte überprüfen Sie Ihre Searcharr-Konfiguration und versuchen Sie es erneut."
all_seasons: Alle Staffel
first_season: Nur die erste Staffel
latest_season: Nur letzte Staffel
Expand All @@ -42,6 +44,7 @@ add_tag_button: "Etikette hinzufügen: {tag}"
finished_tagging_button: Fertiges Etikette
monitor_button: überwachen {option}
add_quality_button: "Qualität hinzufügen: {quality}"
add_language_button: "Sprache hinzufügen: {language}"
add_path_button: Hinzufügen zu {path}
add_button: Hinzufügen {kind}!
already_added_button: Schon hinzugefügt!
Expand All @@ -57,3 +60,9 @@ help_sonarr: Verwenden Sie {series_commands} um Sonarr eine Serie hinzuzufügen.
help_radarr: Verwenden Sie {movie_commands} um einen Film zu Radarr hinzuzufügen.
no_features: Tut mir leid, aber alle meine Funktionen sind derzeit deaktiviert.
admin_help: Da Sie ein Administrator sind, können Sie auch {commands} verwenden, um Benutzer zu verwalten.
readarr_disabled: Tut mir leid, aber die Buchunterstützung ist deaktiviert.
include_book_title_in_cmd: Bitte geben Sie den Buchtitel in den Befehl ein, z.b. {commands}
no_matching_books: Tut mir leid, aber ich habe keine passenden Buchen gefunden.
help_readarr: Verwenden Sie {book_commands} um einen Buchen zu Readarr hinzuzufügen.
no_metadata_profiles: "Fehler beim Hinzufügen {kind}: keine Metadatenprofil aktiviert für {app}! Bitte überprüfen Sie Ihre Searcharr-Konfiguration und versuchen Sie es erneut."
add_metadata_button: "Metadaten hinzufügen: {metadata}"
9 changes: 9 additions & 0 deletions lang/en-us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ language_label: English
movie: movie
series: series
season: season
book: book
title: title
title_here: title here
password: password
Expand All @@ -25,6 +26,7 @@ convo_not_found: I received your command, but I don't recognize the conversation
search_canceled: Search canceled!
no_root_folders: "Error adding {kind}: no root folders enabled for {app}! Please check your Searcharr configuration and try again."
no_quality_profiles: "Error adding {kind}: no quality profiles enabled for {app}! Please check your Searcharr configuration and try again."
no_language_profiles: "Error adding {kind}: no language profiles enabled for {app}! Please check your Searcharr configuration and try again."
all_seasons: All Seasons
first_season: First Season Only
latest_season: Latest Season Only
Expand All @@ -42,6 +44,7 @@ add_tag_button: "Add Tag: {tag}"
finished_tagging_button: Finished Tagging
monitor_button: Monitor {option}
add_quality_button: "Add Quality: {quality}"
add_language_button: "Add Language: {language}"
add_path_button: Add to {path}
add_button: Add {kind}!
already_added_button: Already Added!
Expand All @@ -57,3 +60,9 @@ help_sonarr: Use {series_commands} to add a series to Sonarr.
help_radarr: Use {movie_commands} to add a movie to Radarr.
no_features: Sorry, but all of my features are currently disabled.
admin_help: Since you are an admin, you can also use {commands} to manage users.
readarr_disabled: Sorry, but book support is disabled.
include_book_title_in_cmd: Please include the book title in the command, e.g. {commands}
no_matching_books: Sorry, but I didn't find any matching books.
help_readarr: Use {book_commands} to add a book to Readarr.
no_metadata_profiles: "Error adding {kind}: no metadata profiles enabled for {app}! Please check your Searcharr configuration and try again."
add_metadata_button: "Add Metadata: {metadata}"
9 changes: 9 additions & 0 deletions lang/es-es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ language_label: Español
movie: película
series: serie
season: temporada
book: libro
title: título
title_here: título aquí
password: contraseña
Expand All @@ -25,6 +26,7 @@ convo_not_found: He recibido tu comando, pero no he reconocido la conversación.
search_canceled: ¡Búsqueda cancelada!
no_root_folders: "¡Error añadiendo {kind}: no se han encontrado carpetas raíz para {app}! Por favor, consulta tu configuración de Searcharr e inténtalo de nuevo."
no_quality_profiles: "¡Error añadiendo {kind}: no se han encontrado perfiles de calidad activados para {app}! Por favor, consulta tu configuración de Searcharr e inténtalo de nuevo."
no_language_profiles: "¡Error añadiendo {kind}: no se han encontrado perfiles de idioma activados para {app}! Por favor, consulta tu configuración de Searcharr e inténtalo de nuevo."
all_seasons: Todas las Temporadas
first_season: Sólo la Primera Temporada
latest_season: Sólo la Última Temporada
Expand All @@ -42,6 +44,7 @@ add_tag_button: "Añadir Etiqueta: {tag}"
finished_tagging_button: Etiquetado Finalizado
monitor_button: Monitoraje {option}
add_quality_button: "Añadir Calidad: {quality}"
add_language_button: "Añadir Idioma: {language}"
add_path_button: Añadir a {path}
add_button: ¡Añadir {kind}!
already_added_button: ¡Ya Añadido!
Expand All @@ -57,3 +60,9 @@ help_sonarr: Usa {series_commands} para añadir serie a Sonarr.
help_radarr: Usa {movie_commands} para añadir película a Radarr.
no_features: Lo siento, pero todas mis funciones están actualmente desactivadas.
admin_help: Ya que eres administrador, también puedes usar {commands} para gestionar los usuarios.
readarr_disabled: Lo siento, pero el soporte para libros está desativado.
include_book_title_in_cmd: Por favor, incluye el título del libro en el comando, por ejemplo {commands}
no_matching_books: Lo siento, no he encontrado ninguna libro que cumpla el criterio de búsqueda.
help_readarr: Usa {book_commands} para añadir libro a Readarr.
no_metadata_profiles: "¡Error añadiendo {kind}: no se han encontrado perfiles de metadata activados para {app}! Por favor, consulta tu configuración de Searcharr e inténtalo de nuevo."
add_metadata_button: "Añadir Metadata: {metadata}"
13 changes: 11 additions & 2 deletions lang/fr-fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ language_label: Français
movie: film
series: séries
season: saison
book: livre
title: titre
title_here: titre ici
password: mot de passe
Expand All @@ -23,8 +24,9 @@ no_matching_series: Désolé, mais je n'ai pas trouvé de série correspondante.
no_users_found: Désolé, mais je n'ai pas trouvé d'utilisateurs. Cela semble être une erreur...
convo_not_found: J'ai reçu votre commande, mais je ne reconnais pas la conversation. Veuillez recommencer.
search_canceled: Recherche annulée !
no_root_folders: "Error adding {kind} : no root folders enabled for {app} ! Veuillez vérifier votre configuration Searcharr et réessayer."
no_quality_profiles: "Error adding {kind} : no quality profiles enabled for {app} ! Veuillez vérifier votre configuration Searcharr et réessayer."
no_root_folders: "Erreur lors de l'ajout {kind} : aucun dossier racine activé pour {app} ! Veuillez vérifier votre configuration Searcharr et réessayer."
no_quality_profiles: "Erreur lors de l'ajout {kind} : aucun profil de qualité activé pour {app} ! Veuillez vérifier votre configuration Searcharr et réessayer."
no_language_profiles: "Erreur lors de l'ajout {kind} : aucun profil de langue activé pour {app} ! Veuillez vérifier votre configuration Searcharr et réessayer."
all_seasons: Toutes saisons
first_season: Première saison
latest_season: Dernière saison
Expand All @@ -42,6 +44,7 @@ add_tag_button: "Ajout Tag: {tag}"
finished_tagging_button: Tag terminé
monitor_button: Monitor {option}
add_quality_button: "Qualité : {quality}"
add_language_button: "Langue: {language}"
add_path_button: Chemin {path}
add_button: ajouter {kind}!
already_added_button: Déjà téléchargé!
Expand All @@ -57,3 +60,9 @@ help_sonarr: Utilisez {series_commands} pour ajouter une série à Sonarr.
help_radarr: Utilisez {movie_commands} pour ajouter un film à Radarr.
no_features: Désolé, mais toutes mes fonctions sont actuellement désactivées.
admin_help: Puisque vous êtes un administrateur, vous pouvez également utiliser les {commands} pour gérer les utilisateurs.
readarr_disabled: Désolé, mais le support des livres est désactivé.
include_book_title_in_cmd: "Veuillez inclure le titre du livre dans la commande, par exemple : {commands}"
no_matching_books: Désolé, mais je n'ai pas trouvé de livres correspondants.
help_readarr: Utilisez {book_commands} pour ajouter un livre à Readarr.
no_metadata_profiles: "Erreur lors de l'ajout {kind} : aucun profil de metadata activé pour {app} ! Veuillez vérifier votre configuration Searcharr et réessayer."
add_metadata_button: "Metadata: {metadata}"
Loading