Testing viewtube

This commit is contained in:
Dmitriy Holkin 2019-09-17 13:25:18 +04:00
parent 7c8a7bab46
commit 101a0dedb7
2 changed files with 6 additions and 2 deletions

View File

@ -29,6 +29,7 @@
ranger
tdesktop
spotifywm
youtube-dl
] ++ lib.optionals config.deviceSpecific.isLaptop [
# Important
acpi

View File

@ -21,10 +21,13 @@
v="$(echo "$s" | awk -F 'SEPARATOR' '{print $1}')"
a="$(echo "$s" | awk -F 'SEPARATOR' '{print $2}')"
if [ "$a" = "" ]; then
mpv --hwdec=vaapi --osc --fs --ytdl=yes "$v"
echo "$v" > viewtube.log
mpv --log-file=mpv.log --hwdec=vaapi --fs --ytdl=yes "$v" >> viewtube.log
#cvlc -f "$v"
else
mpv --hwdec=vaapi --osc --fs --ytdl=yes --audio-file "$a" "$v"
echo "$v" > viewtube.log
echo "$a" >> viewtube.log
mpv --log-file=mpv.log --hwdec=vaapi --fs --ytdl=yes --audio-file "$a" "$v" >> viewtube.log
#cvlc -f --input-slave "$a" "$v"
fi
'';