You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.2 KiB
Markdown

6 years ago
# Podqueue - Send URL To Podboat Queue
repurposing podboat as a TUI download manager instead of only handling podcast
* tutorial video: [Link](https://www.youtube.com/watch?v=1ylYBDfqyPY)
6 years ago
* offical website: [Link](https://newsboat.org/)
6 years ago
tags: linux, terminal, newsboat, podboat, newsbeuter, podbeuter, download manager, TUI, Text User Interface, Ncurses, commandline, CLI, rss feed reader, podcast catcher, downloader
### install requirements
newsboat
### configuration
$EDITOR ~/.newsboat/config
#-------- podboat (podcast downloader) {{{
#------------------------------------------------------
download-path "~/Downloads/%n"
max-downloads 2
player "xdg-open"
# }}}
### function
$EDITOR ~/.zshrc or $EDITOR ~/.bashrc
podqueue() {
if [ $# -lt 1 ]; then
echo -e "Add Links To Podboat, Use Podboat As A TUI Download Manager"
echo -e "\nUsage: $0 <url>"
echo -e "\nExample:\n$0 http://abcxyz.com/filename.mp3"
return 1
fi
URL="$1"
SAVE_PATH=~/Downloads
GET_FILENAME="$(echo "$1" | rev | cut -d\/ -f1 | rev | sed -e 's@\%20@\_@g' )"
echo "$URL" "$SAVE_PATH/$GET_FILENAME" >> ~/.newsboat/queue
}
### standalone script
6 years ago
wget https://raw.githubusercontent.com/gotbletu/shownotes/master/podqueue.sh
6 years ago
chmod +x podqueue.sh
### using with w3m web browser
----
$EDITOR ~/.w3m/config
extbrowser6 /path/to/script/podqueue.sh
----
How to use custom scripts with w3m: https://www.youtube.com/watch?v=YzgCgarUa_M
### references
- https://www.youtube.com/watch?v=1ylYBDfqyPY
- [How to use custom scripts with w3m](https://www.youtube.com/watch?v=YzgCgarUa_M)
- [podbeuter - podcast downloader](https://www.youtube.com/watch?v=5wyefy3GuDg)
6 years ago
- https://newsboat.org/
6 years ago
### contact
_ _ _ _
__ _ ___ | |_| |__ | | ___| |_ _ _
/ _` |/ _ \| __| '_ \| |/ _ \ __| | | |
| (_| | (_) | |_| |_) | | __/ |_| |_| |
\__, |\___/ \__|_.__/|_|\___|\__|\__,_|
|___/
- http://www.youtube.com/user/gotbletu
- https://twitter.com/gotbletu
- https://plus.google.com/+gotbletu
- https://github.com/gotbletu
- gotbletu@gmail.com