formatting

This commit is contained in:
Alex Shnitman 2023-05-27 19:14:52 +03:00
parent c30173cdc0
commit 2a7cf3e775
3 changed files with 2 additions and 32 deletions

View File

@ -194,4 +194,4 @@ app.on_response_prepare.append(on_prepare)
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG)
log.info(f"Listening on {config.HOST}:{config.PORT}")
web.run_app(app, host=config.HOST, port=config.PORT, reuse_port=True)
web.run_app(app, host=config.HOST, port=config.PORT, reuse_port=True)

View File

@ -332,4 +332,4 @@ class DownloadQueue:
await self.notifier.canceled(id)
else:
self.done.put(entry)
await self.notifier.completed(entry.info)
await self.notifier.completed(entry.info)

View File

@ -1,30 +0,0 @@
version: "3"
services:
metube:
# Local Build: Use the following to build the Docker image locally
build:
context: .
dockerfile: ./Dockerfile
image: metube
# Official Image: Comment out the lines above and uncomment the following line to use the official image
# image: ghcr.io/alexta69/metube
container_name: metube
restart: unless-stopped
ports:
- "8081:8081"
# Example environment variables
environment:
# UID: 1000
# GID: 1000
YTDL_OPTIONS: '{"writesubtitles": true, "subtitleslangs": ["en", "-live_chat"], "postprocessors": [{"key": "FFmpegEmbedSubtitle", "already_have_subtitle": false}, {"key": "FFmpegMetadata", "add_chapters": true}]}'
# Configure yt-dlp to download intermediary files to /temp
TEMP_DIR: /temp
volumes:
- ./downloads:/downloads
# Mount /temp using tmpfs
# This will store the intermediary files in memory, making downloads faster; however, you won't be able to
# resume a download if you stop the container
- type: tmpfs
target: /temp:rw,nosuid,nodev,exec