From c53c0dfc3a41c6b15255196b7eee98a4e0709dcf Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 28 Feb 2024 00:03:44 +0100 Subject: [PATCH] https://chat.openai.com/share/caa4bea2-3acb-46bc-af37-104d608e6a83 --- tools/RSS2WEEKnewsfile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/RSS2WEEKnewsfile.sh b/tools/RSS2WEEKnewsfile.sh index 1b1b93cc..8f09621d 100755 --- a/tools/RSS2WEEKnewsfile.sh +++ b/tools/RSS2WEEKnewsfile.sh @@ -18,9 +18,9 @@ RSS=$1 ## filepath to RSS week file to extract Tiddlers #~ echo "======= RSS 2 WEEKnewsfile ======= #~ Analysing ${RSS} #~ ==================================================================" -cat ${RSS} | jq -r '.[] | if .ipfs then "\n# [\(."title")](\(."ipfs"))\n\n\(.tags)\n \(.duree)" +cat ${RSS} | jq -r '.[] | select(.title | startswith("$:/") | not) | if .ipfs then "\n# [\(."title")](\(."ipfs"))\n\n\(.tags)\n \(.duree)" elif .ipfs_one then "\n# \(."title")\n\n\(.tags)\n\(.desc)\n\(.g1pub)" elif ._external_url then "\n# [\(."title")](\(._external_url))\n\n\(.tags)\n\(.mime) \(.type)" - else "\n# \(."title")\n\n\(.tags)\n\(.text)" end' + else "\n# \(."title")\n\n\(.tags)\n\(.text)" end | select(.tags | contains(["$:/isEmbedded", "$:/isIpfs"]) | not)' exit 0