From 98a36761b702f27a3b2a42c18859a342fffda265 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 8 Jan 2022 20:42:24 -0700 Subject: [PATCH] Stop spamming logs with ls errors, add todo --- TODO.md | 18 ++++++++++++++++++ scripts/status.json.sh | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 TODO.md diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..fe23fdf --- /dev/null +++ b/TODO.md @@ -0,0 +1,18 @@ +To Do +----- +* Status web app as PWA +* Move `video/` and `audio/` into new `incomplete/` directory +* Report title in status.json +* Output JSON instead of bourne shell for env + * New function in common: getenv() { jq -r --arg key="$1" '.[key]' env.json } + * Then just slurp the thing into the status json +* Indicate what is in the encoding queue (# items, titles) +* Completion percentage scraping + * Handbrake: `Encoding: task 2 of 2, 20.58%` + * dvdbackup: `Copying Title, part 2/4: 72% done` + + +Done +---- + +* Status web app diff --git a/scripts/status.json.sh b/scripts/status.json.sh index 2adc897..3b579df 100755 --- a/scripts/status.json.sh +++ b/scripts/status.json.sh @@ -5,8 +5,8 @@ cat </dev/null | jq -nR '[inputs]'), + "audio": $(ls */*/.mp3 2>/dev/null | jq -nR '[inputs]') }, "status": { "reader": $(cat status.reader | jq -nR '[inputs][0]'),