feeds: add support for video; subscribe to videos in gpodder
This commit is contained in:
parent
80875d6312
commit
9704dcc997
|
@ -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 "" != "") {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue