From 9e2f14fff4061db842543c57efc2d634a73a00ef Mon Sep 17 00:00:00 2001 From: Ziad Arafat Date: Wed, 25 Nov 2026 16:16:24 -0700 Subject: [PATCH] Match the deployed YouTube folder name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The quadlet cannot pass a path containing spaces, so the library folder is now Music/YouTube. 🤖 Generated with Codebuff Co-Authored-By: Codebuff --- README.md | 6 +++--- watch/jobs.py | 5 ++--- watch/youtube.py | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index df983d7..c31de43 100644 --- a/README.md +++ b/README.md @@ -380,9 +380,9 @@ same way, without downloading anything. `yt-dlp` needs ffmpeg and a writable view of the music library. Set `PLAYLIST_YTDLP` (binary, default `yt-dlp`), `PLAYLIST_YOUTUBE_DIR` (the folder -the bot writes, default `/music/YouTube Imports`) and -`PLAYLIST_YOUTUBE_JELLYFIN_DIR` (the same folder as Jellyfin indexes it, default -identical). Only YouTube links are accepted, output is confined to that folder, +the bot writes, default `/music/YouTube`) and `PLAYLIST_YOUTUBE_JELLYFIN_DIR` +(the same folder as Jellyfin indexes it, default identical; the deployment uses +`/arrmedia/Music/YouTube`). Only YouTube links are accepted, output is confined to that folder, and downloads never run through a shell. A write whose acknowledgement is uncertain stops for owner verification, diff --git a/watch/jobs.py b/watch/jobs.py index 9dcb791..4856683 100644 --- a/watch/jobs.py +++ b/watch/jobs.py @@ -224,8 +224,7 @@ class Jobs: return Youtube( binary=os.environ.get("PLAYLIST_YTDLP", "yt-dlp"), folder=os.environ.get( - "PLAYLIST_YOUTUBE_DIR", - "/music/YouTube Imports", + "PLAYLIST_YOUTUBE_DIR", "/music/YouTube" ), ) @@ -233,7 +232,7 @@ class Jobs: def jellyfin_path(path: str) -> str: """Translate the bot path into the path Jellyfin indexes.""" source = os.environ.get( - "PLAYLIST_YOUTUBE_DIR", "/music/YouTube Imports" + "PLAYLIST_YOUTUBE_DIR", "/music/YouTube" ).rstrip("/") target = os.environ.get( "PLAYLIST_YOUTUBE_JELLYFIN_DIR", source diff --git a/watch/youtube.py b/watch/youtube.py index 2d70482..f7be1f2 100644 --- a/watch/youtube.py +++ b/watch/youtube.py @@ -94,7 +94,7 @@ class Youtube: self, *, binary: str = "yt-dlp", - folder: str | os.PathLike[str] = "/music/YouTube Imports", + folder: str | os.PathLike[str] = "/music/YouTube", runner: Runner | None = None, ) -> None: """Use the deployed yt-dlp unless a test injects a runner."""