diff --git a/opml/mug.of.opml b/opml/mug.of.opml index f01f3ed..434cb0f 100644 --- a/opml/mug.of.opml +++ b/opml/mug.of.opml @@ -39,8 +39,8 @@ xmlUrl="https://brainshit.fr/rss" htmlUrl="https://brainshit.fr" description="Si xmlUrl="https://tilde.town/~lucidiot/ideas/rss.xml" htmlUrl="https://tilde.town/~lucidiot/ideas/" description="random ideas published by ~lucidiot"/> - + ]*>/,""); - if(sub(/<\/title>.*/,"")) title=0; + title{ + match($0,/]*>/); + $0 = substr($0, RSTART+RLENGTH); + if(sub(/<\/title>.*/,"")){title=0;seen=1;} print;} - !title{exit}') + /<\/title/{seen=1} + !title&&seen{exit}') # RSS else sprinkle=$(echo -e "$germ" | grep -m 1 "" | @@ -120,10 +123,14 @@ orange_pecan_mousse() { test -z "$luncheon" && luncheon="No description available" echo -e "$__pecan" >>"$_wheremug.tmp" - sed -i "s|{{sprinkle}}|$sprinkle|g" "$_wheremug.tmp" - sed -i "s|{{seed}}|$seed|g" "$_wheremug.tmp" - sed -i "s|{{pearl}}|$pearl|g" "$_wheremug.tmp" - sed -i "s|{{luncheon}}|$luncheon|g" "$_wheremug.tmp" + awk '{ + gsub(/{{sprinkle}}/,"'"$sprinkle"'"); + gsub(/{{seed}}/,"'"$seed"'"); + gsub(/{{pearl}}/,"'"$pearl"'"); + gsub(/{{luncheon}}/,"'"$luncheon"'"); + print; + }' <"$_wheremug.tmp" >"$_wheremug.tmp.tmp" && + mv "$_wheremug.tmp.tmp" "$_wheremug.tmp" sprinkle="" pearl="" luncheon=""