2019-08-18 12:28:11 -04:00
|
|
|
#!/usr/bin/env sh
|
2018-12-08 16:01:11 -05:00
|
|
|
# Podboat sucks. This script replaces it.
|
|
|
|
# It reads the newsboat queue, queuing downloads with taskspooler.
|
2018-12-09 14:30:58 -05:00
|
|
|
# It also removes the junk from extentions.
|
2018-12-08 16:01:11 -05:00
|
|
|
queuefile="$HOME/.local/share/newsboat/queue"
|
|
|
|
|
|
|
|
while read -r line; do
|
|
|
|
[ -z "$line" ] && continue
|
2018-12-09 14:30:58 -05:00
|
|
|
url="$(echo "$line" | awk '{print $1}')"
|
2019-01-20 17:39:03 -05:00
|
|
|
qndl "$url" "curl -LO"
|
2018-12-08 16:01:11 -05:00
|
|
|
done < "$queuefile"
|
|
|
|
|
|
|
|
echo > "$queuefile"
|