diff options
| author | Joe Mou <dev@mou.fo> | 2025-06-26 18:26:09 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2025-06-27 18:07:20 -0400 |
| commit | 411998928e7a8bf52f65bed3f0b434671daff909 (patch) | |
| tree | 40a94a5565af79dc0a6fd77e1c27ff0b8e1966a0 /hostnix/elmo | |
| parent | a13fb60da18e16c20c7a160eac6a9f700058e55a (diff) | |
Configure ytdl-sub
Not a big fan. It's obtuse to configure, the implementation is
complicated (relative to just using the yt-dlp CLI), and difficult to
debug. We would probably still need some additional automation to get
the file layout we want.
It might be more straightforward to just write our own automation on top
of yt-dlp.
Diffstat (limited to 'hostnix/elmo')
| -rw-r--r-- | hostnix/elmo/media.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/hostnix/elmo/media.nix b/hostnix/elmo/media.nix index 8fff82e..53fa0d2 100644 --- a/hostnix/elmo/media.nix +++ b/hostnix/elmo/media.nix @@ -33,6 +33,49 @@ locations."/".proxyPass = "http://[::1]:8096"; }; + services.ytdl-sub.instances.main = { + enable = true; + # TODO schedule = null; + config = { + presets = { + "YouTube Channel" = { + preset = [ + "Jellyfin TV Show by Date" + "Max 1080p" + ]; + overrides = { + tv_show_directory = "/srv/media/incoming/YouTube"; + date_range_after = "20240101"; # arbitrarily early default + }; + embed_thumbnail = true; + subtitles = { + embed_subtitles = true; + allow_auto_generated_subtitles = true; + }; + chapters = { + embed_chapters = true; + sponsorblock_categories = [ "all" ]; + }; + date_range = { + after = "{date_range_after}"; + before = "today-2days"; + }; + ytdl_options = { + break_on_existing = true; + }; + }; + }; + }; + subscriptions = { + "YouTube Channel" = { + "~Moon Channel" = { + url = "https://www.youtube.com/@moon-channel"; + date_range_after = "20241201"; + }; + }; + }; + }; + # TODO kavita vs komga? services.kavita = { enable = true; |
