Skip to content

Commit

Permalink
Merge pull request #59 from toddrob99/beta
Browse files Browse the repository at this point in the history
v3.0
  • Loading branch information
toddrob99 authored Dec 19, 2022
2 parents e01d14b + f95f25f commit ab6a59e
Show file tree
Hide file tree
Showing 20 changed files with 854 additions and 51 deletions.
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

0 comments on commit ab6a59e

Please sign in to comment.