You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: added smart_next_proceed_countdown and smart_prev_cancel_countdown user config.
Changed autoskip function to utilize proceed_autoskip function which is also used for smart_next_proceed_countdown.
This also resolved some improper osd not showing when using proceed_countdown keybind because it did not have the full function as per the timeout.
last_chapter_skip_behavior=[[ [ ["no-chapters", "silence-skip"], ["internal-chapters", "playlist-next"], ["external-chapters", "silence-skip"] ] ]],--1.09# Available options [[ [ ["no-chapters", "silence-skip"], ["internal-chapters", "playlist-next"], ["external-chapters", "chapter-next"] ] ]] -- it defaults to silence-skip so if dont define external-chapters it will be silence-skip
27
+
smart_next_proceed_countdown=true, --1.18# if autoskip countdown is active, proceeds to autoskip as the next action
28
+
smart_prev_cancel_countdown=false, --1.18# if autoskip countdown is active, smart_prev will cancel autoskip countdown without going backwards
27
29
--chapters user config--
28
30
external_chapters_autoload=true, --0.15# rename
29
31
modified_chapters_autosave=[[ ["no-chapters", "external-chapters"] ]], --1.06# add the following options --- (yes/no) or specify types ["no-chapters", "internal-chapters", "external-chapters"])
@@ -281,6 +283,7 @@ end
281
283
282
284
-- smart-skip main code --
283
285
functionsmartNext()
286
+
ifg_autoskip_countdown_flagando.smart_next_proceed_countdownthenproceed_autoskip(true) returnend--1.18# proceed_autoskip using smartNext if countdown started
ifg_autoskip_countdown_flagando.smart_prev_cancel_countdownthenkill_chapterskip_countdown('osd') returnend--1.18# kill auto-skip if its on-going when using smartPrev
ifg_autoskip_countdown>1andnotforcethenreturnend--1.18# add option to force it by passing it as true
1311
1303
1312
1304
mp.set_property('osd-duration', o.osd_duration)
1313
1305
mp.commandv(autoskip_osd, "show-progress")
@@ -1332,7 +1324,9 @@ function chapterskip(_, current, countdown)
1332
1324
end
1333
1325
skipped[skip] =true
1334
1326
kill_chapterskip_countdown()
1335
-
end)
1327
+
end
1328
+
mp.add_timeout(countdown, proceed_autoskip) --1.18# bind the function instead
1329
+
bind_keys(o.proceed_autoskip_countdown_keybind, "proceed-autoskip-countdown", function() proceed_autoskip(true) returnend) --1.18# bind proceed with force and return
1336
1330
return
1337
1331
end
1338
1332
end
@@ -1345,11 +1339,7 @@ function chapterskip(_, current, countdown)
mp.add_timeout(countdown, proceed_autoskip) --1.18# bind the function instead
1395
+
bind_keys(o.proceed_autoskip_countdown_keybind, "proceed-autoskip-countdown", function() proceed_autoskip(true) returnend) --1.18# bind proceed with force and return
0 commit comments