Skip to content

Commit

Permalink
Chore: subtitles in iina
Browse files Browse the repository at this point in the history
  • Loading branch information
DemonKingSwarn committed Jul 23, 2022
1 parent 187467a commit d0d5795
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flix_cli/core/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__core__ = "1.3.5"
__core__ = "1.3.6"
5 changes: 4 additions & 1 deletion flix_cli/core/utils/__player__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d0d5795

Please sign in to comment.