From c18fbe74d306a49cf929d6b30b5d7f2603c666c5 Mon Sep 17 00:00:00 2001 From: blank X Date: Sat, 2 Jul 2022 15:34:00 +0700 Subject: [PATCH] Remove ao-mute check --- sponsorblock_lm.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sponsorblock_lm.lua b/sponsorblock_lm.lua index 4a83962..057e4eb 100644 --- a/sponsorblock_lm.lua +++ b/sponsorblock_lm.lua @@ -83,8 +83,8 @@ function observePlaybackTime(_, current_pos) mp.set_property_number("playback-time", segment.segment[2]) current_pos = segment.segment[2] elseif segment.actionType == "mute" then - -- if ao-mute or mute is false, then it's not muted, which causes it to be muted - local caused_mute = (mp.get_property_bool("ao-mute") or mp.get_property_bool("mute")) == false + -- if mute is false, then it's not muted, which causes it to be muted + local caused_mute = mp.get_property_bool("mute") == false -- if subs are visible, they'll be hidden local caused_hidden_subs = mp.get_property_bool("sub-visibility") == true if (caused_mute or caused_hidden_subs) and (video_data.current_mute_segment == nil