|
|
@ -27,7 +27,7 @@ if pgrep -u "$(id -u)" -x mpv > /dev/null; then |
|
|
|
|
|
|
|
|
|
|
|
# The "16) Connection refused" error happens at the row below |
|
|
|
# The "16) Connection refused" error happens at the row below |
|
|
|
# See: https://github.com/deterenkelt/Nadeshiko/wiki/Known-issues-for-Nadeshiko%E2%80%91mpv#----connection-refused |
|
|
|
# See: https://github.com/deterenkelt/Nadeshiko/wiki/Known-issues-for-Nadeshiko%E2%80%91mpv#----connection-refused |
|
|
|
if ! TIME="$(echo '{ "command": ["get_property", "time-pos"] }' | socat - "$MPV_SOCKET_PATH" 2> "\dev\null")"; then |
|
|
|
if ! TIME="$(echo '{ "command": ["get_property", "time-pos"] }' | socat - "$MPV_SOCKET_PATH" 2> /dev/null)"; then |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
fi |
|
|
|
if [ "$(echo "$TIME" | jq -r .error)" = "success" ]; then |
|
|
|
if [ "$(echo "$TIME" | jq -r .error)" = "success" ]; then |
|
|
|