fix play command for files
This commit is contained in:
parent
9cec56ef73
commit
550e9c0ac8
@ -1,6 +1,6 @@
|
||||
[metadata]
|
||||
name = jimaku-dl
|
||||
version = 0.1.2
|
||||
version = 0.1.3
|
||||
author = InsaneDesperado
|
||||
author_email = insane@lmaoxd.lol
|
||||
description = Download japanese anime subtitles from Jimaku
|
||||
|
@ -766,8 +766,7 @@ class JimakuDownloader:
|
||||
if play and not is_directory:
|
||||
self.logger.info("Launching MPV with the subtitle files...")
|
||||
mpv_cmd = ["mpv", media_file]
|
||||
for sub in downloaded_files:
|
||||
mpv_cmd.extend(["--sub-file", sub])
|
||||
mpv_cmd.extend([f"--sub-file={filename}"])
|
||||
try:
|
||||
self.logger.debug(f"Running command: {' '.join(mpv_cmd)}")
|
||||
subprocess_run(mpv_cmd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user