diff --git a/app_bot/requirements.txt b/app_bot/requirements.txt index 6fcac61..e38f567 100644 --- a/app_bot/requirements.txt +++ b/app_bot/requirements.txt @@ -1,6 +1,6 @@ PyYAML==6.0.1 addict==2.4.0 -pyrofork==2.3.19.post2 +pyrofork==2.3.20 tenacity==8.2.3 -tgcrypto==1.2.5 +tgcrypto-pyrofork==1.2.6 typing_extensions==4.10.0 diff --git a/app_worker/worker/core/downloader.py b/app_worker/worker/core/downloader.py index 7a46722..d2a3161 100644 --- a/app_worker/worker/core/downloader.py +++ b/app_worker/worker/core/downloader.py @@ -138,7 +138,7 @@ class MediaDownloader: remove_dir(destination_dir) raise - match media_type: # noqa: E999 + match media_type: case DownMediaType.AUDIO: return get_audio(), None case DownMediaType.VIDEO: diff --git a/app_worker/worker/core/media_service.py b/app_worker/worker/core/media_service.py index 972836b..25a84e1 100644 --- a/app_worker/worker/core/media_service.py +++ b/app_worker/worker/core/media_service.py @@ -118,7 +118,7 @@ class MediaService: db=db, ) - match media.media_type: # noqa: E999 + match media.media_type: case DownMediaType.AUDIO: await post_process_audio() case DownMediaType.VIDEO: diff --git a/app_worker/ytdl_opts/per_host/_base.py b/app_worker/ytdl_opts/per_host/_base.py index 38213b9..d307a76 100644 --- a/app_worker/ytdl_opts/per_host/_base.py +++ b/app_worker/ytdl_opts/per_host/_base.py @@ -95,7 +95,7 @@ class AbstractHostConfig: ytdl_opts = deepcopy(self.DEFAULT_YTDL_OPTS) - match media_type: # noqa: E999 + match media_type: case DownMediaType.AUDIO: ytdl_opts.extend(self.AUDIO_YTDL_OPTS) ytdl_opts.extend(self.AUDIO_FORMAT_YTDL_OPTS) diff --git a/base.Dockerfile b/base.Dockerfile index e6300d5..4d04241 100644 --- a/base.Dockerfile +++ b/base.Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-alpine +FROM python:3.12-alpine RUN apk add --no-cache \ tzdata \