if no JP is found, disable subs
This commit is contained in:
parent
6040539bb0
commit
c505190100
|
@ -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
|
||||
+
|
||||
|
|
Loading…
Reference in a new issue