diff options
author | Profpatsch <mail@profpatsch.de> | 2019-12-27 22:46:45 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2019-12-27 22:46:45 +0100 |
commit | 5390d1edf27563075d183866ed60f0e373e5c89c (patch) | |
tree | 131ca410e385d8a60b49d46b9196734d84fa7536 /pkgs | |
parent | 481891ac1580d1b52d61a0ce301627107d417012 (diff) |
pkgs/profpatsch/youtube2audiopodcast: fix a few things
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/profpatsch/youtube2audiopodcast/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/profpatsch/youtube2audiopodcast/default.nix b/pkgs/profpatsch/youtube2audiopodcast/default.nix index 0eb9724c..4cc6e6be 100644 --- a/pkgs/profpatsch/youtube2audiopodcast/default.nix +++ b/pkgs/profpatsch/youtube2audiopodcast/default.nix @@ -103,7 +103,7 @@ let ;; /video/*) ${youtube-dl-audio} "''${REQUEST_URI#/video/}" 1>&2 \ - && ${serve-http-file "audio/opus"} "./audio.opus" + && ${serve-http-file "audio/ogg"} "./audio.opus" ;; *) return 1 ;; esac @@ -122,14 +122,14 @@ let channelURL = "https://www.youtube.com/playlist?list=PLV9hywkogVcOuHJ8O121ulSfFDKUhJw66"; }); - transform-flat-playlist-to-rss = hostUrl: + transform-flat-playlist-to-rss = { videoUrl }: let playlist-item-info-jl = '' (\o -> { itemTitle: o.title , itemYoutubeLink: append "https://youtube.com/watch?v=" o.id ${/*TODO how to add the url here nicely?*/""} - , itemURL: append "${hostUrl}/" o.id + , itemURL: append "${videoUrl}/" o.id ${/*# TODO*/""} , itemDescription: "" @@ -165,7 +165,7 @@ let youtube-playlist-info "$1" ] "pipeline" [ - (transform-flat-playlist-to-rss config.url) + (transform-flat-playlist-to-rss { videoUrl = "${config.url}/video"; }) ] printFeed ]; |