From c2ea74cf70727551af0fd803cd5d5d545039ac38 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Tue, 29 Oct 2024 21:35:54 +0900 Subject: [PATCH] create metube --- metube/compose.yml | 13 +++++++++++++ metube/config/ytdl_options.json | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 metube/compose.yml create mode 100644 metube/config/ytdl_options.json diff --git a/metube/compose.yml b/metube/compose.yml new file mode 100644 index 0000000..0317266 --- /dev/null +++ b/metube/compose.yml @@ -0,0 +1,13 @@ +services: + metube: + image: ghcr.io/alexta69/metube + restart: unless-stopped + ports: + - "8081:8081" + volumes: + - ./config:/etc/metube + - ./downloads:/downloads + environment: + YTDL_OPTIONS_FILE: /etc/metube/ytdl_options.json + DOWNLOAD_DIR: /downloads/Music + OUTPUT_TEMPLATE: "%(artist,uploader|Unknown)s,%(album,artist,uploader)s,%(title)s [%(id)s].%(ext)s" diff --git a/metube/config/ytdl_options.json b/metube/config/ytdl_options.json new file mode 100644 index 0000000..d132e5e --- /dev/null +++ b/metube/config/ytdl_options.json @@ -0,0 +1,9 @@ +{ + "format": "bestaudio/best", + "writethumbnail": true, + "postprocessors": [ + { "key": "FFmpegExtractAudio" }, + { "key": "FFmpegMetadata" }, + { "key": "EmbedThumbnail" } + ] +}