WIP: Create initial storytime script #3
Loading…
Reference in a new issue
No description provided.
Delete branch "judy/storytime:storytime-script"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🎁 Summary
Initial script to tie together storytime functionality. Takes feed url as required argument, outputs an mp3. (path to output mp3 can also be set to whatever output you want.)
✅ Quality Assurances
What steps have you taken to ensure quality and resilience in the code? Add and check off items you've completed to indicate thoroughness and confidence in your work. Delete non-applicable items.
@ -2,4 +3,3 @@
# Abort if any command fails.
set -e
# Check for presence of a command.
Looks like storytime.sh had all of check-dependencies.sh copied into it. I removed it.
@ -24,0 +17,4 @@
output="output.mp3"
while getopts ":vo:h" opt; do
case ${opt} in
v) verbose="true" ;;
FYI: Verbose flag doesn't currently do anything. I'd change the script to have zero output by default, and pass progress info to stderr if verbose is on. Later, if a TTY isn't detected (assuming output is being piped somewhere else), output can be piped downstream.
Pull request closed