Stop spamming logs with ls errors, add todo

This commit is contained in:
Neale Pickett 2022-01-08 20:42:24 -07:00
parent c8cbdfc108
commit 98a36761b7
2 changed files with 20 additions and 2 deletions

18
TODO.md Normal file
View File

@ -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

View File

@ -5,8 +5,8 @@
cat <<EOD
{
"finished": {
"video": $(ls *.mkv | jq -nR '[inputs]'),
"audio": $(ls */*/*.mp3 | jq -nR '[inputs]')
"video": $(ls *.mkv 2>/dev/null | jq -nR '[inputs]'),
"audio": $(ls */*/.mp3 2>/dev/null | jq -nR '[inputs]')
},
"status": {
"reader": $(cat status.reader | jq -nR '[inputs][0]'),