Browse Source

Update umpv

master
Maxime Wack 1 year ago
parent
commit
9e6f6563f6
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      .config/bin/umpv

+ 2
- 4
.config/bin/umpv View File

@@ -31,8 +31,6 @@ import os
import socket
import errno
import subprocess
import fcntl
import stat
import string

files = sys.argv[1:]
@@ -52,7 +50,7 @@ def make_abs(filename):
if not is_url(filename):
return os.path.abspath(filename)
return filename
files = [make_abs(f) for f in files]
files = (make_abs(f) for f in files)

SOCK = os.path.join(os.getenv("HOME"), ".umpv_socket")

@@ -81,7 +79,7 @@ else:
# Let mpv recreate socket if it doesn't already exist.

opts = (os.getenv("MPV") or "mpv").split()
opts.extend(["--script-opts=ytdl_hook-ytdl_path=yt-dlp", "--no-terminal", "--force-window", "--input-ipc-server=" + SOCK,
opts.extend(["--no-terminal", "--force-window", "--input-ipc-server=" + SOCK,
"--"])
opts.extend(files)



Loading…
Cancel
Save