ptgdp: Set default-search instead of prefixing with ytsearch:

First step on the way to some more complex playlist options
This commit is contained in:
Salt 2019-09-13 20:29:54 -05:00
parent 8a06b9178b
commit e5ad73d4cc

3
ptgdp
View File

@ -79,11 +79,12 @@ cachesong() {
youtube-dl \ youtube-dl \
--add-metadata \ --add-metadata \
--audio-format "best" \ --audio-format "best" \
--default-search "ytsearch:" \
--geo-bypass \ --geo-bypass \
--playlist-items 1 \ --playlist-items 1 \
-x \ -x \
-o "$_tmpfile.%(ext)s" \ -o "$_tmpfile.%(ext)s" \
ytsearch:"$1" \ "$1" \
> /dev/null 2>&1 & > /dev/null 2>&1 &
if wait $!; then if wait $!; then
for file in "$_tmpfile"*; do for file in "$_tmpfile"*; do