Skip to content

Commit 8b82ea6

Browse files
authored
Merge pull request #69 from toddrob99/beta
v3.2 * Docker/build process enhancements * Fix error in French translation * Fix logging.handlers error * Pin python-telegram-bot to v13.15
2 parents ab6a59e + 3785975 commit 8b82ea6

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
FROM python:3.9-alpine
1+
FROM python:3.11-slim
22

3-
LABEL Name=Searcharr Version=1.1
3+
LABEL Name=Searcharr Version=1.2
44

55
WORKDIR /app
66
ADD . /app
77

8-
RUN apk add --no-cache --virtual .build-deps gcc musl-dev libffi-dev openssl-dev python3-dev rust cargo
9-
108
RUN python3 -m pip install --upgrade pip
119
RUN python3 -m pip install -r requirements.txt
1210

13-
RUN apk del .build-deps gcc musl-dev libffi-dev openssl-dev python3-dev rust cargo
14-
1511
CMD ["python3", "searcharr.py"]

lang/fr-fr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ no_language_profiles: "Erreur lors de l'ajout {kind} : aucun profil de langue ac
3030
all_seasons: Toutes saisons
3131
first_season: Première saison
3232
latest_season: Dernière saison
33-
added: On a réussi à ajouter {titre} !
33+
added: On a réussi à ajouter {title} !
3434
unknown_error_adding: Une erreur non spécifiée a été rencontrée lors de l'ajout de {kind} !
3535
removed_user: Tous les accès de l'utilisateur ID [{user}] ont été supprimés avec succès !
3636
unknown_error_removing_user: Erreur non spécifiée rencontrée lors de la suppression de l'identifiant de l'utilisateur [{user}] !

log.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
https://github.com/toddrob99/searcharr
77
"""
88
import logging
9+
from logging.handlers import TimedRotatingFileHandler
910
import os
1011

1112

@@ -30,7 +31,7 @@ def set_up_logger(logger_name, verbose, console):
3031
logPath = os.path.join(os.path.dirname(os.path.realpath(__file__)), "logs")
3132
if not os.path.exists(logPath):
3233
os.makedirs(logPath)
33-
fh = logging.handlers.TimedRotatingFileHandler(
34+
fh = TimedRotatingFileHandler(
3435
os.path.join(logPath, fileName), when="midnight", interval=1, backupCount=7
3536
)
3637
fh.setFormatter(formatter)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
argparse
22
requests
3-
python-telegram-bot
3+
python-telegram-bot==13.15
44
pyyaml
55
arrow

searcharr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import readarr
2525
import settings
2626

27-
__version__ = "3.0"
27+
__version__ = "3.2"
2828

2929
DBPATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data")
3030
DBFILE = "searcharr.db"

0 commit comments

Comments
 (0)