ignoring errors on playlist dl for ytdl
changed output ids to match new setup
This commit is contained in:
parent
904b8971d5
commit
3cd83ed450
4
proj
4
proj
@ -16,8 +16,8 @@ then
|
|||||||
dmenu -i -p 'Pick side'`
|
dmenu -i -p 'Pick side'`
|
||||||
if [ -z "$side" ]; then exit 0; fi
|
if [ -z "$side" ]; then exit 0; fi
|
||||||
|
|
||||||
echo "xrandr --output $out --auto $side DVI-I-1"
|
echo "xrandr --output $out --auto $side HDMI-4"
|
||||||
xrandr --output $out --auto --$side DVI-I-1
|
xrandr --output $out --auto --$side HDMI-4
|
||||||
else
|
else
|
||||||
# Get the display we want to remove
|
# Get the display we want to remove
|
||||||
out=`xrandr | grep ' connected' | awk '{print $1}' | \
|
out=`xrandr | grep ' connected' | awk '{print $1}' | \
|
||||||
|
4
ytdl
4
ytdl
@ -20,10 +20,10 @@ outsingle="$HOME/Music/${dir}/%(title)s.%(ext)s"
|
|||||||
|
|
||||||
# youtube playlists
|
# youtube playlists
|
||||||
if echo "$url" | grep -q '&list=\|?list'; then
|
if echo "$url" | grep -q '&list=\|?list'; then
|
||||||
$cmd -o "$outplaylist" "$url"
|
$cmd -i -o "$outplaylist" "$url"
|
||||||
# soundcloud sets
|
# soundcloud sets
|
||||||
elif echo "$url" | grep -q '/sets/'; then
|
elif echo "$url" | grep -q '/sets/'; then
|
||||||
$cmd -o "$outplaylist" "$url"
|
$cmd -i -o "$outplaylist" "$url"
|
||||||
else
|
else
|
||||||
$cmd -o "$outsingle" "$url"
|
$cmd -o "$outsingle" "$url"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user