Match the deployed YouTube folder name

The quadlet cannot pass a path containing spaces, so the library folder is
now Music/YouTube.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
Ziad Arafat committed 2026-11-25 16:16:24 -07:00
1 parent 85eab7bb16
commit 9e2f14fff4
3 files changed
+6 -7

No files matched your search

+3 -3
View File
@@ -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,
+2 -3
View File
@@ -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
+1 -1
View File
@@ -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."""