feeds: add support for video; subscribe to videos in gpodder

This commit is contained in:
Colin 2023-12-06 15:36:05 +00:00
parent 80875d6312
commit 9704dcc997
3 changed files with 4 additions and 2 deletions

View File

@ -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 "" != "") {

View File

@ -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: {

View File

@ -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 {