From c505190100b1f3a5376bcafab8fbdc4fbb3d1d01 Mon Sep 17 00:00:00 2001 From: hashirama Date: Mon, 22 Jul 2024 18:01:45 -0400 Subject: [PATCH] if no JP is found, disable subs --- force-japanese.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/force-japanese.patch b/force-japanese.patch index 95a18da..cb839fe 100644 --- a/force-japanese.patch +++ b/force-japanese.patch @@ -31,8 +31,8 @@ diff -ruN mpvacious/main.lua mpvacious-patched/main.lua require('subs2srs') diff -ruN mpvacious/utils/force-japanese.lua mpvacious-patched/utils/force-japanese.lua --- mpvacious/utils/force-japanese.lua 1969-12-31 20:00:00.000000000 -0400 -+++ mpvacious-patched/utils/force-japanese.lua 2024-07-22 17:19:11.258733910 -0400 -@@ -0,0 +1,75 @@ ++++ mpvacious-patched/utils/force-japanese.lua 2024-07-22 18:01:09.376499651 -0400 +@@ -0,0 +1,77 @@ +local assdraw = require 'mp.assdraw' + +local preferred_alangs = {"jpn", "ja", "japanese"} @@ -90,6 +90,8 @@ diff -ruN mpvacious/utils/force-japanese.lua mpvacious-patched/utils/force-japan + if selected_sid then + mp.set_property("sid", selected_sid) + mp.add_timeout(3, show_phrase) ++ else ++ mp.set_property("sid", "no") + end +end +