diff --git a/hosts/common/feeds.nix b/hosts/common/feeds.nix index f62aad60..ecce9fd9 100644 --- a/hosts/common/feeds.nix +++ b/hosts/common/feeds.nix @@ -50,6 +50,8 @@ let else "infrequent" )); + } // lib.optionalAttrs (lib.hasPrefix "https://www.youtube.com/" raw.url) { + format = "video"; } // lib.optionalAttrs (raw.is_podcast or false) { format = "podcast"; } // lib.optionalAttrs (raw.title or "" != "") { diff --git a/hosts/common/programs/gpodder.nix b/hosts/common/programs/gpodder.nix index 7c0aad1d..c8b28439 100644 --- a/hosts/common/programs/gpodder.nix +++ b/hosts/common/programs/gpodder.nix @@ -5,7 +5,7 @@ let feeds = sane-lib.feeds; all-feeds = config.sane.feeds; - wanted-feeds = feeds.filterByFormat ["podcast"] all-feeds; + wanted-feeds = feeds.filterByFormat [ "podcast" "video" ] all-feeds; in { sane.programs.gpodder = { package = pkgs.gpodder-adaptive-configured.overrideAttrs (base: { diff --git a/modules/feeds.nix b/modules/feeds.nix index 13f3d7a6..6f5fe26e 100644 --- a/modules/feeds.nix +++ b/modules/feeds.nix @@ -12,7 +12,7 @@ let default = "uncat"; }; format = mkOption { - type = types.enum [ "text" "image" "podcast" ]; + type = types.enum [ "text" "image" "podcast" "video" ]; default = "text"; }; title = mkOption {