summaryrefslogtreecommitdiffstats
path: root/.local/bin/queueandnotify
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/queueandnotify')
-rwxr-xr-x.local/bin/queueandnotify4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/queueandnotify b/.local/bin/queueandnotify
index a54b13e..1c3025c 100755
--- a/.local/bin/queueandnotify
+++ b/.local/bin/queueandnotify
@@ -2,12 +2,12 @@
# Podboat sucks. This script replaces it.
# It reads the newsboat queue, queuing downloads with taskspooler.
-# It also removes the junk from extentions.
+# It also removes the junk from extensions.
queuefile="${XDG_DATA_HOME:-$HOME/.local/share}/newsboat/queue"
while read -r line; do
[ -z "$line" ] && continue
- url="$(echo "$line" | awk '{print $1}')"
+ url="${line%%[ ]*}"
qndl "$url" "curl -LO"
done < "$queuefile"