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
|
else
|
||||||
"infrequent"
|
"infrequent"
|
||||||
));
|
));
|
||||||
|
} // lib.optionalAttrs (lib.hasPrefix "https://www.youtube.com/" raw.url) {
|
||||||
|
format = "video";
|
||||||
} // lib.optionalAttrs (raw.is_podcast or false) {
|
} // lib.optionalAttrs (raw.is_podcast or false) {
|
||||||
format = "podcast";
|
format = "podcast";
|
||||||
} // lib.optionalAttrs (raw.title or "" != "") {
|
} // lib.optionalAttrs (raw.title or "" != "") {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
let
|
let
|
||||||
feeds = sane-lib.feeds;
|
feeds = sane-lib.feeds;
|
||||||
all-feeds = config.sane.feeds;
|
all-feeds = config.sane.feeds;
|
||||||
wanted-feeds = feeds.filterByFormat ["podcast"] all-feeds;
|
wanted-feeds = feeds.filterByFormat [ "podcast" "video" ] all-feeds;
|
||||||
in {
|
in {
|
||||||
sane.programs.gpodder = {
|
sane.programs.gpodder = {
|
||||||
package = pkgs.gpodder-adaptive-configured.overrideAttrs (base: {
|
package = pkgs.gpodder-adaptive-configured.overrideAttrs (base: {
|
||||||
|
|
|
@ -12,7 +12,7 @@ let
|
||||||
default = "uncat";
|
default = "uncat";
|
||||||
};
|
};
|
||||||
format = mkOption {
|
format = mkOption {
|
||||||
type = types.enum [ "text" "image" "podcast" ];
|
type = types.enum [ "text" "image" "podcast" "video" ];
|
||||||
default = "text";
|
default = "text";
|
||||||
};
|
};
|
||||||
title = mkOption {
|
title = mkOption {
|
||||||
|
|
Loading…
Reference in New Issue