mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-09 03:41:02 -08:00
feat(cli): normalize allanime api output
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user