From 73bc440ac4d0413becb98c78955b97c68cf725b3 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 18 Jul 2022 14:39:04 -0500 Subject: Add Youtube feed processing --- sfeed_html.sh | 13 ++++++++++--- style.css | 6 ++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/sfeed_html.sh b/sfeed_html.sh index 2dd830c..948bf93 100755 --- a/sfeed_html.sh +++ b/sfeed_html.sh @@ -81,9 +81,11 @@ html_feed() { # html_feed FEED(file) => HTML ## ENTRIES entries="$(awk -v NOW="$now" -v FRESH_SECS="$fresh_secs" \ - -v NAME="$filename" -v ASIDE="$aside" -v limit="$LIMIT" \ + -v NAME="$filename" -v FNAME="$filename" \ + -v ASIDE="$aside" -v limit="$LIMIT" \ 'BEGIN { FS="\t"; fresh_feed = 0; FRESH = (NOW - FRESH_SECS); } FNR == 1 { nitem = 0; } + NAME ~ /^\[yt\]/ { sub(/^\[yt\] /, "", NAME); yt = 1; } function unescape(t) { t = html_escape(t); gsub(/\\\t/,"\t",t); @@ -141,14 +143,19 @@ html_feed() { # html_feed FEED(file) => HTML END { if (show_in_sidebar) { printf "