Better RSS heuristic

This commit is contained in:
DarkFeather 2024-02-21 20:22:41 -06:00
parent d99510cd9e
commit 85b041ad2d
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296

View File

@ -43,7 +43,7 @@ function RecentNews() {
# param rssFeed: the url to pull # param rssFeed: the url to pull
rssFeed="$1" rssFeed="$1"
date="$2" date="$2"
curl -s "$rssFeed" | grep "$date" | grep -m 5 link | tail -n 1 | cut -f 2 -d '>' | cut -f 1 -d '?' | cut -f 1 -d '<' curl -s "$rssFeed" | grep "$date" | tr '>' '\n' | grep /link | tail -n 1
} }
function CreateCanary() { function CreateCanary() {