2020-02-08 23:43:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-12-08 21:01:11 +00:00
|
|
|
# Podboat sucks. This script replaces it.
|
|
|
|
# It reads the newsboat queue, queuing downloads with taskspooler.
|
2022-04-10 12:39:05 +00:00
|
|
|
# It also removes the junk from extensions.
|
2020-04-08 23:06:11 +00:00
|
|
|
queuefile="${XDG_DATA_HOME:-$HOME/.local/share}/newsboat/queue"
|
2018-12-08 21:01:11 +00:00
|
|
|
|
|
|
|
while read -r line; do
|
|
|
|
[ -z "$line" ] && continue
|
2021-07-21 16:09:53 +00:00
|
|
|
url="${line%%[ ]*}"
|
2019-01-20 22:39:03 +00:00
|
|
|
qndl "$url" "curl -LO"
|
2018-12-08 21:01:11 +00:00
|
|
|
done < "$queuefile"
|
|
|
|
|
|
|
|
echo > "$queuefile"
|