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 PyYAML==6.0.1
addict==2.4.0 addict==2.4.0
pyrofork==2.3.19.post2 pyrofork==2.3.20
tenacity==8.2.3 tenacity==8.2.3
tgcrypto==1.2.5 tgcrypto-pyrofork==1.2.6
typing_extensions==4.10.0 typing_extensions==4.10.0

View file

@ -138,7 +138,7 @@ class MediaDownloader:
remove_dir(destination_dir) remove_dir(destination_dir)
raise raise
match media_type: # noqa: E999 match media_type:
case DownMediaType.AUDIO: case DownMediaType.AUDIO:
return get_audio(), None return get_audio(), None
case DownMediaType.VIDEO: case DownMediaType.VIDEO:

View file

@ -118,7 +118,7 @@ class MediaService:
db=db, db=db,
) )
match media.media_type: # noqa: E999 match media.media_type:
case DownMediaType.AUDIO: case DownMediaType.AUDIO:
await post_process_audio() await post_process_audio()
case DownMediaType.VIDEO: case DownMediaType.VIDEO:

View file

@ -95,7 +95,7 @@ class AbstractHostConfig:
ytdl_opts = deepcopy(self.DEFAULT_YTDL_OPTS) ytdl_opts = deepcopy(self.DEFAULT_YTDL_OPTS)
match media_type: # noqa: E999 match media_type:
case DownMediaType.AUDIO: case DownMediaType.AUDIO:
ytdl_opts.extend(self.AUDIO_YTDL_OPTS) ytdl_opts.extend(self.AUDIO_YTDL_OPTS)
ytdl_opts.extend(self.AUDIO_FORMAT_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 \ RUN apk add --no-cache \
tzdata \ tzdata \