jptgdp: Correct dependencies, adjust help text
This commit is contained in:
parent
fed0f2e1aa
commit
6d958494ff
10
jptgdp
10
jptgdp
@ -57,15 +57,17 @@ helptext() {
|
||||
cat << EOF
|
||||
Usage: $_name [OPTION]
|
||||
Use youtube-dl and audacious to queue up a playlist given a file of only search
|
||||
queries.
|
||||
-f <file> The playlist file to load
|
||||
queries. The first result found is the one that will be downloaded. Downloaded
|
||||
files are cached in your Music folder under "JPTGDP Songs" for offline use.
|
||||
-f <file> The playlist file to load. The file should be plaintext
|
||||
containing a YouTube search query on each line
|
||||
|
||||
-c Clears the cache (which can become quite large)
|
||||
-d Download only; don't queue anything up
|
||||
-s Shuffle the playlist
|
||||
|
||||
-r <directory> Start up rofi, if installed, and present a listing of
|
||||
all .ytp files in the given directory
|
||||
all .gdp files in the given directory
|
||||
|
||||
-h Print this help text
|
||||
|
||||
@ -115,7 +117,7 @@ playlist() {
|
||||
# Main
|
||||
main() {
|
||||
# Boostrapping and setup
|
||||
validatedeps basename mktemp || error "Critical dependency $_return was not met" 1
|
||||
validatedeps youtube-dl basename || error "Critical dependency $_return was not met" 1
|
||||
mkdir -p "$_tmpdir"
|
||||
mkdir -p "$_musicdir"
|
||||
trap trapexit EXIT
|
||||
|
Loading…
Reference in New Issue
Block a user