From 5a5b13d5273e767c5cd5f53d673ba2d405b77b90 Mon Sep 17 00:00:00 2001 From: jbannon Date: Fri, 27 May 2022 05:27:58 +0000 Subject: [PATCH] edge pip in dockerfile, if for dl archive --- docker/Dockerfile | 4 ++-- src/ytdl_sub/downloaders/downloader.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 47d8e234..657cbe3b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,8 +18,8 @@ RUN apk update && \ apk add --repository=http://dl-3.alpinelinux.org/alpine/edge/main/ \ python3=3.10.4-r0 \ py3-setuptools=59.4.0-r0 && \ - apk add --repository=http://dl-3.alpinelinux.org/alpine/edge/community/ \ - py3-pip=22.0.4-r0 && \ + apk add --repository=http://dl-3.alpinelinux.org/alpine/edge/community/ \ + py3-pip && \ mkdir -p /config && \ pip install --no-cache-dir ytdl_sub-*.whl && \ rm ytdl_sub-*.whl diff --git a/src/ytdl_sub/downloaders/downloader.py b/src/ytdl_sub/downloaders/downloader.py index 1055ac6f..315256b5 100644 --- a/src/ytdl_sub/downloaders/downloader.py +++ b/src/ytdl_sub/downloaders/downloader.py @@ -72,7 +72,8 @@ class Downloader(Generic[DownloaderOptionsT, DownloaderEntryT], ABC): ytdl_options["outtmpl"] = str(Path(working_directory) / "%(id)s.%(ext)s") # If a download archive file name is provided, set it to that - ytdl_options["download_archive"] = str(Path(working_directory) / download_archive_file_name) + if download_archive_file_name: + ytdl_options["download_archive"] = str(Path(working_directory) / download_archive_file_name) return ytdl_options