summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordyknon <dyknon@r5f.jp>2025-03-31 21:30:56 +0900
committerdyknon <dyknon@r5f.jp>2025-03-31 21:31:12 +0900
commit2020bdb38c516682f53af6e8dbdbb3337a74483a (patch)
tree8f95b64caab3c8bca090033ccf7f2cf3fd1d4d9a
parent4a6b0e95a8eacf1acd05cf4804063dfccd42c49b (diff)
better operating with observe_property
-rw-r--r--ytdl-storyboard/osc-mod.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/ytdl-storyboard/osc-mod.lua b/ytdl-storyboard/osc-mod.lua
index 3d2e072..bf4ce9d 100644
--- a/ytdl-storyboard/osc-mod.lua
+++ b/ytdl-storyboard/osc-mod.lua
@@ -2137,7 +2137,7 @@ local function osc_init()
mp.set_property_number("user-data/osc/seekbar/possec", possec)
return mp.format_time(possec)
else
- mp.del_property("user-data/osc/seekbar/possec")
+ mp.set_property_native("user-data/osc/seekbar/possec", nil)
return ""
end
end
@@ -2368,11 +2368,11 @@ local function export_uistate()
mp.set_property_number(
"user-data/osc/active-element-cnt", active_elem_cnt)
else
- mp.del_property("user-data/osc/active-element")
+ mp.set_property_native("user-data/osc/active-element", nil)
mp.set_property_number("user-data/osc/active-element-cnt", 0)
end
else
- mp.del_property("user-data/osc/active-element")
+ mp.set_property_native("user-data/osc/active-element", nil)
mp.set_property_number("user-data/osc/active-element-cnt", 0)
end
end