ytdl changes

This commit is contained in:
Lucy Hochkamp 2025-09-03 14:09:59 +02:00
parent 866fd953bb
commit 70bb2e784d
No known key found for this signature in database

View file

@ -5,64 +5,82 @@
inputs, inputs,
... ...
}: }:
with lib;
let let
channels = [ channels = {
"2BoredGuysOfficial" "Entertainment" = [
"AlexPrinz" "2BoredGuysOfficial"
"BagelBoyOfficial" "AlexPrinz"
"BenEater" "BagelBoyOfficial"
"Boy_Boy" "DiedeutschenBackrooms"
"ContraPoints" "DankPods"
"DIYPerks" "Defunctland"
"DankPods" "Ididathing"
"Defunctland" "GarbageTime420"
"DeviantOllam" "Boy_Boy"
"GarbageTime420" "ContraPoints"
"Ididathing" "PhilosophyTube"
"LinusTechTips" "PosyMusic"
"MaxFosh" "RobBubble"
"MaxMakerChannel" "agingwheels"
"MichaelReeves" "NileBlue"
"Nerdforge" "NileRed"
"NileBlue" "styropyro"
"NileRed" "williamosman"
"NoBoilerplate" "billwurtz"
"Parabelritter" "f4micom"
"PhilosophyTube" "hbomberguy"
"PosyMusic" "simonegiertz"
"RobBubble" "Parabelritter"
"TechnologyConnections" "DeviantOllam"
"TechnologyConnextras" "MaxFosh"
"TheB1M" "MichaelReeves"
"TomScottGo" "TomScottGo"
"TylerMcVicker1" "WilliamOsman2"
"WilliamOsman2" ];
"ZackFreedman" "Tism" = [
"agingwheels" "Echoray1" # alwin meschede
"altf4games" "TechnologyConnections"
"billwurtz" "TechnologyConnextras"
"f4micom" "TheB1M"
"gabe.follower" "bahnblick_eu"
"hbomberguy" "jameshoffmann"
"iliketomakestuff" "scottmanley"
"jameshoffmann" "theCodyReeder"
"simonegiertz" "standupmaths"
"stacksmashing" ];
"standupmaths" "Making" = [
"styropyro" "DIYPerks"
"theCodyReeder" "MaxMakerChannel"
"williamosman" "Nerdforge"
]; "iliketomakestuff"
"ZackFreedman"
];
"Games" = [
"TylerMcVicker1"
"gabe.follower"
"altf4games"
];
"Programming" = [
"BenEater"
"NoBoilerplate"
"stacksmashing"
];
"Tech" = [
"LinusTechTips"
];
};
in in
{ {
systemd.services."ytdl-sub-default".serviceConfig.ReadWritePaths = ["/data/media/yt"]; systemd.services."ytdl-sub-default".serviceConfig.ReadWritePaths = [ "/data/media/yt" ];
services.ytdl-sub = { services.ytdl-sub = {
instances.default = { instances.default = {
enable = true; enable = true;
schedule = "0/6:0"; schedule = "0/6:0";
config = { config = {
presets."TV Show" = { presets."Sponsorblock" = {
ytdl_options.cookiefile = "/data/media/yt/cookies.Personal.txt"; ytdl_options.cookiefile = "/data/media/yt/cookies.Personal.txt";
subtitles = { subtitles = {
embed_subtitles = true; embed_subtitles = true;
@ -73,25 +91,38 @@ in
allow_auto_generated_subtitles = false; allow_auto_generated_subtitles = false;
}; };
chapters = { chapters = {
embed_chapters = true;
sponsorblock_categories = [ sponsorblock_categories = [
"sponsor" # "outro"
"selfpromo" "selfpromo"
"preview"
"interaction"
"sponsor"
"music_offtopic"
# "intro"
]; ];
remove_sponsorblock_categories = "all"; remove_sponsorblock_categories = "all";
force_key_frames = false;
}; };
}; };
}; };
subscriptions = { subscriptions = {
"__preset__".overrides.tv_show_directory = "/data/media/yt"; "__preset__".overrides = {
"Jellyfin TV Show by Date | Only Recent | Max 1080p" = builtins.listToAttrs ( tv_show_directory = "/data/media/yt";
builtins.map (x: { only_recent_max_files = 30;
name = x; # only_recent_date_range = "30days";
value = "https://youtube.com/@${x}"; };
}) channels "Jellyfin TV Show by Date | Sponsorblock | Only Recent | Max 1080p" = mapAttrs' (
); n: v:
"Jellyfin TV Show Collection" = { nameValuePair "= ${n}" (
"Murder Drones" = "https://www.youtube.com/playlist?list=PLHovnlOusNLiJz3sm0d5i2Evwa2LDLdrg"; builtins.listToAttrs (builtins.map (x: (nameValuePair x "https://youtube.com/@${x}")) v)
)
) channels;
"Jellyfin TV Show Collection | Sponsorblock" = {
"~Murder Drones" = {
s01_url = "https://www.youtube.com/playlist?list=PLHovnlOusNLiJz3sm0d5i2Evwa2LDLdrg";
tv_show_collection_episode_ordering = "playlist-index";
};
}; };
}; };
}; };