This commit is contained in:
Taras Terletsky 2024-03-23 19:11:18 +02:00
parent 20c35b00f0
commit 2c40fcc216
5 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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:

View file

@ -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:

View file

@ -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)

View file

@ -1,4 +1,4 @@
FROM python:3.11-alpine
FROM python:3.12-alpine
RUN apk add --no-cache \
tzdata \