Merge pull request #247 from 1RandomDev/master

Fix error because of missing cache directory
This commit is contained in:
Alex 2023-04-11 19:46:53 +03:00 committed by GitHub
commit 462a840a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,8 @@ RUN chmod +x docker-entrypoint.sh && \
pipenv install --system --deploy --clear && \ pipenv install --system --deploy --clear && \
pip uninstall pipenv -y && \ pip uninstall pipenv -y && \
apk del .build-deps && \ apk del .build-deps && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/* && \
mkdir /.cache && chmod 777 /.cache
COPY favicon ./favicon COPY favicon ./favicon
COPY app ./app COPY app ./app

View File

@ -79,7 +79,6 @@ class Download:
'paths': {"home": self.download_dir}, 'paths': {"home": self.download_dir},
'outtmpl': { "default": self.output_template, "chapter": self.output_template_chapter }, 'outtmpl': { "default": self.output_template, "chapter": self.output_template_chapter },
'format': self.format, 'format': self.format,
'cachedir': False,
'socket_timeout': 30, 'socket_timeout': 30,
'progress_hooks': [put_status], 'progress_hooks': [put_status],
'postprocessor_hooks': [put_status_postprocessor], 'postprocessor_hooks': [put_status_postprocessor],