feat(cli): normalize allanime api output

This commit is contained in:
Benex254
2024-08-05 09:47:01 +03:00
parent ae5e20505a
commit 88388dd182
6 changed files with 159 additions and 115 deletions

View File

@@ -2,9 +2,9 @@ import shutil
import subprocess
def mpv(link, *custom_args):
def mpv(link, title, *custom_args):
MPV = shutil.which("mpv")
if not MPV:
print("mpv not found")
return
subprocess.run([MPV, *custom_args, link])
subprocess.run([MPV, *custom_args, f"--title={title}", link])