commit 3093439be7b516bf4cbd00fe5ad8a645636e2437
parent b9f421b572888f0b7d217369accfa0036c849ddb
Author: William Casarin <jb55@jb55.com>
Date: Wed, 15 Dec 2021 17:01:54 -0800
rss feeds, we want enclosure url first
most of the time?
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bin/rssfeed b/bin/rssfeed
@@ -39,9 +39,10 @@ def parse_date:
def parse_url:
. |
objects |
+ (.enclosure | objects | ."@url") //
(.link | strings) //
- (.link | objects | ."@href") //
- (.enclosure | objects | ."@url")
+ (.link | objects | ."@href")
+
;
(.rss.channel.item // .feed.entry) |