summaryrefslogtreecommitdiff
path: root/home/newsboat-lib.nix
blob: 1344a9bc2ac0d64864e1bbda59effe904fc311bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
rec {
  tags = tags: url: {
    tags = tags;
    inherit url;
  };
  btag = url: t: tags [ t "blog" ] url;
  btags = url: ts: tags (ts ++ [ "blog" ]) url;

  ntag = url: t: tags [ t "news" ] url;
  jtag = url: t: tags [ t "journal" ] url;

  vtag = url: t: tags [ t "video" ] url;
  ytag = channel: tag: vtag ("https://www.youtube.com/feeds/videos.xml?channel_id=${channel}") tag;
  blender = channel: vtag "https://video.blender.org/feeds/videos.xml?videoChannelId=${toString channel}" "blender";

  podcast = url: tags [ "podcast" ] url;
  music = url: tags [ "music" ] url;

  fr = "français";
}