diff --git a/tests/test_video_organization.py b/tests/test_video_organization.py index 93ffd1e0..04e2ff4a 100644 --- a/tests/test_video_organization.py +++ b/tests/test_video_organization.py @@ -28,6 +28,10 @@ def test_normalize_fills_and_validates(): assert d["episode_template"] == "$series/$episode" # an invalid transfer mode falls back to the default assert organization.normalize({"transfer_mode": "torrent"})["transfer_mode"] == "copy" + # youtube template is a first-class setting: defaulted + editable + blank→default + assert organization.default_settings()["youtube_template"] == organization.DEFAULTS["youtube_template"] + assert organization.normalize({"youtube_template": "$channel/$title"})["youtube_template"] == "$channel/$title" + assert organization.normalize({"youtube_template": " "})["youtube_template"] == organization.DEFAULTS["youtube_template"] def test_load_save_roundtrip(): diff --git a/webui/index.html b/webui/index.html index 21008348..73c613d0 100644 --- a/webui/index.html +++ b/webui/index.html @@ -6010,6 +6010,13 @@ Example: +
+ + + Followed YouTube channels organize as a Plex "TV by date" show. Variables: $channel, $year, $date (2024-03-15), $month (03), $day (15), $title, $videoid. + Example: +
+