From d0d57957dd11f99e922cf130e0715f15387fd506 Mon Sep 17 00:00:00 2001 From: DemonKingSwarn Date: Sat, 23 Jul 2022 16:43:35 +0530 Subject: [PATCH] Chore: subtitles in iina --- flix_cli/core/__version__.py | 2 +- flix_cli/core/utils/__player__.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/flix_cli/core/__version__.py b/flix_cli/core/__version__.py index 624e9c9..a665ad2 100644 --- a/flix_cli/core/__version__.py +++ b/flix_cli/core/__version__.py @@ -1 +1 @@ -__core__ = "1.3.5" +__core__ = "1.3.6" diff --git a/flix_cli/core/utils/__player__.py b/flix_cli/core/utils/__player__.py index 5fc5c97..77ab05c 100644 --- a/flix_cli/core/utils/__player__.py +++ b/flix_cli/core/utils/__player__.py @@ -23,8 +23,11 @@ def play(file, name, referer, subtitles): IINA_EXECUTABLE, f"--mpv-referrer={referer}", file, - f"--mpv-force-media-title=Playing {name}" + f"--mpv-force-media-title=Playing {name}", + "--keep-running" ] + + args.extend(f"--mpv-sub-files={_}" for _ in subtitles) iina_process = subprocess.Popen(args)