ytdl-sub dl --youtube.video bugfixes (#40)
* Fix error when maintain_download_archive=False, improve error message * edge pip in dockerfile, if for dl archive * lint
This commit is contained in:
parent
de5dade937
commit
6b53b3bdea
2 changed files with 6 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ RUN apk update && \
|
||||||
python3=3.10.4-r0 \
|
python3=3.10.4-r0 \
|
||||||
py3-setuptools=59.4.0-r0 && \
|
py3-setuptools=59.4.0-r0 && \
|
||||||
apk add --repository=http://dl-3.alpinelinux.org/alpine/edge/community/ \
|
apk add --repository=http://dl-3.alpinelinux.org/alpine/edge/community/ \
|
||||||
py3-pip=22.0.4-r0 && \
|
py3-pip && \
|
||||||
mkdir -p /config && \
|
mkdir -p /config && \
|
||||||
pip install --no-cache-dir ytdl_sub-*.whl && \
|
pip install --no-cache-dir ytdl_sub-*.whl && \
|
||||||
rm ytdl_sub-*.whl
|
rm ytdl_sub-*.whl
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,10 @@ class Downloader(Generic[DownloaderOptionsT, DownloaderEntryT], ABC):
|
||||||
ytdl_options["outtmpl"] = str(Path(working_directory) / "%(id)s.%(ext)s")
|
ytdl_options["outtmpl"] = str(Path(working_directory) / "%(id)s.%(ext)s")
|
||||||
|
|
||||||
# If a download archive file name is provided, set it to that
|
# 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
|
return ytdl_options
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue