Skip to content

Commit ab6a59e

Browse files
authored
Merge pull request #59 from toddrob99/beta
v3.0
2 parents e01d14b + f95f25f commit ab6a59e

File tree

20 files changed

+854
-51
lines changed

20 files changed

+854
-51
lines changed

.github/workflows/beta.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ jobs:
1111
steps:
1212
-
1313
name: Set up QEMU
14-
uses: docker/setup-qemu-action@v1
14+
uses: docker/setup-qemu-action@v2
1515
-
1616
name: Set up Docker Buildx
17-
uses: docker/setup-buildx-action@v1
17+
uses: docker/setup-buildx-action@v2
1818
-
1919
name: Login to DockerHub
20-
uses: docker/login-action@v1
20+
uses: docker/login-action@v2
2121
with:
2222
username: ${{ secrets.DOCKERHUB_USERNAME }}
2323
password: ${{ secrets.DOCKERHUB_TOKEN }}
2424
-
2525
name: Build and push
26-
uses: docker/build-push-action@v2
26+
uses: docker/build-push-action@v3
2727
with:
2828
platforms: linux/amd64,linux/arm64,linux/arm/v7
2929
push: true

.github/workflows/pre-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ jobs:
1010
steps:
1111
-
1212
name: Set up QEMU
13-
uses: docker/setup-qemu-action@v1
13+
uses: docker/setup-qemu-action@v2
1414
-
1515
name: Set up Docker Buildx
16-
uses: docker/setup-buildx-action@v1
16+
uses: docker/setup-buildx-action@v2
1717
-
1818
name: Get Version
1919
id: get_version
2020
uses: battila7/get-version-action@v2
2121
-
2222
name: Login to DockerHub
23-
uses: docker/login-action@v1
23+
uses: docker/login-action@v2
2424
with:
2525
username: ${{ secrets.DOCKERHUB_USERNAME }}
2626
password: ${{ secrets.DOCKERHUB_TOKEN }}
2727
-
2828
name: Build and push
29-
uses: docker/build-push-action@v2
29+
uses: docker/build-push-action@v3
3030
with:
3131
platforms: linux/amd64,linux/arm64,linux/arm/v7
3232
push: true

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ jobs:
1010
steps:
1111
-
1212
name: Set up QEMU
13-
uses: docker/setup-qemu-action@v1
13+
uses: docker/setup-qemu-action@v2
1414
-
1515
name: Set up Docker Buildx
16-
uses: docker/setup-buildx-action@v1
16+
uses: docker/setup-buildx-action@v2
1717
-
1818
name: Get Version
1919
id: get_version
2020
uses: battila7/get-version-action@v2
2121
-
2222
name: Login to DockerHub
23-
uses: docker/login-action@v1
23+
uses: docker/login-action@v2
2424
with:
2525
username: ${{ secrets.DOCKERHUB_USERNAME }}
2626
password: ${{ secrets.DOCKERHUB_TOKEN }}
2727
-
2828
name: Build and push
29-
uses: docker/build-push-action@v2
29+
uses: docker/build-push-action@v3
3030
with:
3131
platforms: linux/amd64,linux/arm64,linux/arm/v7
3232
push: true

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
### By Todd Roberts
55
https://github.com/toddrob99/searcharr
66

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

99
## Setup & Run
1010

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

2425
### Docker & Docker-Compose
2526

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

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

48-
### Search & Add a Series to Sonarr or a Movie to Radarr
49+
### Search & Add a Series to Sonarr, a Movie to Radarr, or a Book to Readarr
4950

50-
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.
51+
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.
5152

5253
### Manage Users
5354

lang/ca-es.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ language_label: Català
44
movie: pel·lícula
55
series: sèrie
66
season: temporada
7+
book: llibre
78
title: títol
89
title_here: títol aquí
910
password: contrasenya
@@ -25,6 +26,7 @@ convo_not_found: He rebut la teva ordre, però no reconec la conversa. Sisplau,
2526
search_canceled: Cerca cancel·lada!
2627
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."
2728
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."
29+
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."
2830
all_seasons: Totes les Temporades
2931
first_season: Només la Primera Temporada
3032
latest_season: Només la Última Temporada
@@ -42,6 +44,7 @@ add_tag_button: "Afegir Etiqueta: {tag}"
4244
finished_tagging_button: Etiquetat Completat
4345
monitor_button: Monitoratge {option}
4446
add_quality_button: "Afegir Qualitat: {quality}"
47+
add_language_button: "Afegir llenguatge: {language}"
4548
add_path_button: Afegir a {path}
4649
add_button: "{kind} afegit!"
4750
already_added_button: "Ja Afegit!"
@@ -57,3 +60,9 @@ help_sonarr: Utilitza {series_commands} per afegir una sèrie a Sonarr.
5760
help_radarr: Utilitza {movie_commands} per afegir una pel·lícula a Radarr.
5861
no_features: Ho sento, però totes les meves funcions estàn desactivades temporalment.
5962
admin_help: Com que ets administrador, també pots utilitzar {commands} per gestionar els usuaris.
63+
readarr_disabled: Ho sento, però el suport per llibres està desactivat.
64+
include_book_title_in_cmd: Sisplau, inclou el títol del llibre en la ordre, per exemple {commands}
65+
no_matching_books: Ho sento, però no he trobat cap llibre que compleixi el criteri de cerca.
66+
help_readarr: Utilitza {book_commands} per afegir una llibre a Readarr.
67+
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."
68+
add_metadata_button: "Afegir Metadata: {metadata}"

lang/de-de.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ language_label: German
44
movie: Film
55
series: Serie
66
season: Staffel
7+
book: Buchen
78
title: Title
89
title_here: Titel hier
910
password: Kennwort
@@ -25,6 +26,7 @@ convo_not_found: Ich habe Ihren Befehl erhalten, aber ich erkenne das Gespräch
2526
search_canceled: Suche abgebrochen!
2627
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."
2728
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."
29+
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."
2830
all_seasons: Alle Staffel
2931
first_season: Nur die erste Staffel
3032
latest_season: Nur letzte Staffel
@@ -42,6 +44,7 @@ add_tag_button: "Etikette hinzufügen: {tag}"
4244
finished_tagging_button: Fertiges Etikette
4345
monitor_button: überwachen {option}
4446
add_quality_button: "Qualität hinzufügen: {quality}"
47+
add_language_button: "Sprache hinzufügen: {language}"
4548
add_path_button: Hinzufügen zu {path}
4649
add_button: Hinzufügen {kind}!
4750
already_added_button: Schon hinzugefügt!
@@ -57,3 +60,9 @@ help_sonarr: Verwenden Sie {series_commands} um Sonarr eine Serie hinzuzufügen.
5760
help_radarr: Verwenden Sie {movie_commands} um einen Film zu Radarr hinzuzufügen.
5861
no_features: Tut mir leid, aber alle meine Funktionen sind derzeit deaktiviert.
5962
admin_help: Da Sie ein Administrator sind, können Sie auch {commands} verwenden, um Benutzer zu verwalten.
63+
readarr_disabled: Tut mir leid, aber die Buchunterstützung ist deaktiviert.
64+
include_book_title_in_cmd: Bitte geben Sie den Buchtitel in den Befehl ein, z.b. {commands}
65+
no_matching_books: Tut mir leid, aber ich habe keine passenden Buchen gefunden.
66+
help_readarr: Verwenden Sie {book_commands} um einen Buchen zu Readarr hinzuzufügen.
67+
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."
68+
add_metadata_button: "Metadaten hinzufügen: {metadata}"

lang/en-us.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ language_label: English
44
movie: movie
55
series: series
66
season: season
7+
book: book
78
title: title
89
title_here: title here
910
password: password
@@ -25,6 +26,7 @@ convo_not_found: I received your command, but I don't recognize the conversation
2526
search_canceled: Search canceled!
2627
no_root_folders: "Error adding {kind}: no root folders enabled for {app}! Please check your Searcharr configuration and try again."
2728
no_quality_profiles: "Error adding {kind}: no quality profiles enabled for {app}! Please check your Searcharr configuration and try again."
29+
no_language_profiles: "Error adding {kind}: no language profiles enabled for {app}! Please check your Searcharr configuration and try again."
2830
all_seasons: All Seasons
2931
first_season: First Season Only
3032
latest_season: Latest Season Only
@@ -42,6 +44,7 @@ add_tag_button: "Add Tag: {tag}"
4244
finished_tagging_button: Finished Tagging
4345
monitor_button: Monitor {option}
4446
add_quality_button: "Add Quality: {quality}"
47+
add_language_button: "Add Language: {language}"
4548
add_path_button: Add to {path}
4649
add_button: Add {kind}!
4750
already_added_button: Already Added!
@@ -57,3 +60,9 @@ help_sonarr: Use {series_commands} to add a series to Sonarr.
5760
help_radarr: Use {movie_commands} to add a movie to Radarr.
5861
no_features: Sorry, but all of my features are currently disabled.
5962
admin_help: Since you are an admin, you can also use {commands} to manage users.
63+
readarr_disabled: Sorry, but book support is disabled.
64+
include_book_title_in_cmd: Please include the book title in the command, e.g. {commands}
65+
no_matching_books: Sorry, but I didn't find any matching books.
66+
help_readarr: Use {book_commands} to add a book to Readarr.
67+
no_metadata_profiles: "Error adding {kind}: no metadata profiles enabled for {app}! Please check your Searcharr configuration and try again."
68+
add_metadata_button: "Add Metadata: {metadata}"

lang/es-es.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ language_label: Español
44
movie: película
55
series: serie
66
season: temporada
7+
book: libro
78
title: título
89
title_here: título aquí
910
password: contraseña
@@ -25,6 +26,7 @@ convo_not_found: He recibido tu comando, pero no he reconocido la conversación.
2526
search_canceled: ¡Búsqueda cancelada!
2627
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."
2728
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."
29+
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."
2830
all_seasons: Todas las Temporadas
2931
first_season: Sólo la Primera Temporada
3032
latest_season: Sólo la Última Temporada
@@ -42,6 +44,7 @@ add_tag_button: "Añadir Etiqueta: {tag}"
4244
finished_tagging_button: Etiquetado Finalizado
4345
monitor_button: Monitoraje {option}
4446
add_quality_button: "Añadir Calidad: {quality}"
47+
add_language_button: "Añadir Idioma: {language}"
4548
add_path_button: Añadir a {path}
4649
add_button: ¡Añadir {kind}!
4750
already_added_button: ¡Ya Añadido!
@@ -57,3 +60,9 @@ help_sonarr: Usa {series_commands} para añadir serie a Sonarr.
5760
help_radarr: Usa {movie_commands} para añadir película a Radarr.
5861
no_features: Lo siento, pero todas mis funciones están actualmente desactivadas.
5962
admin_help: Ya que eres administrador, también puedes usar {commands} para gestionar los usuarios.
63+
readarr_disabled: Lo siento, pero el soporte para libros está desativado.
64+
include_book_title_in_cmd: Por favor, incluye el título del libro en el comando, por ejemplo {commands}
65+
no_matching_books: Lo siento, no he encontrado ninguna libro que cumpla el criterio de búsqueda.
66+
help_readarr: Usa {book_commands} para añadir libro a Readarr.
67+
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."
68+
add_metadata_button: "Añadir Metadata: {metadata}"

lang/fr-fr.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ language_label: Français
44
movie: film
55
series: séries
66
season: saison
7+
book: livre
78
title: titre
89
title_here: titre ici
910
password: mot de passe
@@ -23,8 +24,9 @@ no_matching_series: Désolé, mais je n'ai pas trouvé de série correspondante.
2324
no_users_found: Désolé, mais je n'ai pas trouvé d'utilisateurs. Cela semble être une erreur...
2425
convo_not_found: J'ai reçu votre commande, mais je ne reconnais pas la conversation. Veuillez recommencer.
2526
search_canceled: Recherche annulée !
26-
no_root_folders: "Error adding {kind} : no root folders enabled for {app} ! Veuillez vérifier votre configuration Searcharr et réessayer."
27-
no_quality_profiles: "Error adding {kind} : no quality profiles enabled for {app} ! Veuillez vérifier votre configuration Searcharr et réessayer."
27+
no_root_folders: "Erreur lors de l'ajout {kind} : aucun dossier racine activé pour {app} ! Veuillez vérifier votre configuration Searcharr et réessayer."
28+
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."
29+
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."
2830
all_seasons: Toutes saisons
2931
first_season: Première saison
3032
latest_season: Dernière saison
@@ -42,6 +44,7 @@ add_tag_button: "Ajout Tag: {tag}"
4244
finished_tagging_button: Tag terminé
4345
monitor_button: Monitor {option}
4446
add_quality_button: "Qualité : {quality}"
47+
add_language_button: "Langue: {language}"
4548
add_path_button: Chemin {path}
4649
add_button: ajouter {kind}!
4750
already_added_button: Déjà téléchargé!
@@ -57,3 +60,9 @@ help_sonarr: Utilisez {series_commands} pour ajouter une série à Sonarr.
5760
help_radarr: Utilisez {movie_commands} pour ajouter un film à Radarr.
5861
no_features: Désolé, mais toutes mes fonctions sont actuellement désactivées.
5962
admin_help: Puisque vous êtes un administrateur, vous pouvez également utiliser les {commands} pour gérer les utilisateurs.
63+
readarr_disabled: Désolé, mais le support des livres est désactivé.
64+
include_book_title_in_cmd: "Veuillez inclure le titre du livre dans la commande, par exemple : {commands}"
65+
no_matching_books: Désolé, mais je n'ai pas trouvé de livres correspondants.
66+
help_readarr: Utilisez {book_commands} pour ajouter un livre à Readarr.
67+
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."
68+
add_metadata_button: "Metadata: {metadata}"

0 commit comments

Comments
 (0)