From 0fdd38cb99915bf5f41f8b4ecb5fdb5be8014e5d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 11 Oct 2020 22:45:16 +0200 Subject: Make add rss work for anime titles where resolution is in parantheses instead of brackets --- list-by-updated.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 list-by-updated.sh (limited to 'list-by-updated.sh') diff --git a/list-by-updated.sh b/list-by-updated.sh new file mode 100755 index 0000000..86780ea --- /dev/null +++ b/list-by-updated.sh @@ -0,0 +1,10 @@ +#!/bin/sh -e + +for rss_tracked_dir in ~/.config/automedia/rss/tracked/*; do + cat "$rss_tracked_dir/updated" + echo " " $(basename "$rss_tracked_dir") +done | sort -nr | while IFS= read -r line; do + timestamp=$(date -d @$(echo "$line" | cut -d' ' -f1)) + rss_tracked_item=$(echo "$line" | cut -d' ' -f2-) + echo "$timestamp" "|" "$rss_tracked_item" +done -- cgit v1.2.3