mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-25 04:15:19 -08:00
11 lines
228 B
Python
11 lines
228 B
Python
import shutil
|
|
import subprocess
|
|
|
|
|
|
def mpv(link, title, *custom_args):
|
|
MPV = shutil.which("mpv")
|
|
if not MPV:
|
|
print("mpv not found")
|
|
return
|
|
subprocess.run([MPV, *custom_args, f"--title={title}", link])
|