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
Copy file name to clipboardExpand all lines: scripts/SmartSkip.lua
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
-- License: BSD 2-Clause License
3
3
-- Creator: Eisa AlAwadhi
4
4
-- Project: SmartSkip
5
-
-- Version: 1.18
5
+
-- Version: 1.19
6
6
-- Date: 21-09-2023
7
7
8
8
-- Related forked projects:
@@ -25,7 +25,7 @@ local o = {
25
25
--SmartSkip user config--
26
26
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
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
28
+
smart_prev_cancel_countdown=true, --1.18# if autoskip countdown is active, smart_prev will cancel autoskip countdown without going backwards
29
29
--chapters user config--
30
30
external_chapters_autoload=true, --0.15# rename
31
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"])
@@ -1296,7 +1296,6 @@ function chapterskip(_, current, countdown)
1296
1296
end)
1297
1297
end
1298
1298
end
1299
-
ifo.autoskip_countdown_gracefulthenreturnend
1300
1299
functionproceed_autoskip(force) --1.18# convert it into function so we may bind it to keybind, and also use it for smartNext
ifg_autoskip_countdown>1andnotforcethenreturnend--1.18# add option to force it by passing it as true
@@ -1325,8 +1324,9 @@ function chapterskip(_, current, countdown)
1325
1324
skipped[skip] =true
1326
1325
kill_chapterskip_countdown()
1327
1326
end
1327
+
bind_keys(o.proceed_autoskip_countdown_keybind, "proceed-autoskip-countdown", function() proceed_autoskip(true) returnend) --1.19# reposition to before graceful so binding works
1328
+
ifo.autoskip_countdown_gracefulthenreturnend--1.19# reposition to before timeout to fix graceful
1328
1329
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
1330
1330
return
1331
1331
end
1332
1332
end
@@ -1362,7 +1362,6 @@ function chapterskip(_, current, countdown)
1362
1362
end)
1363
1363
end
1364
1364
end
1365
-
ifo.autoskip_countdown_gracefulthenreturnend
1366
1365
functionproceed_autoskip(force) --1.18# convert it into function so we may bind it to keybind, and also use it for smartNext
1367
1366
ifnotg_autoskip_countdown_flagthenreturnend
1368
1367
ifg_autoskip_countdown>1andnotforcethenreturnend--1.18# add option to force it by passing it as true
@@ -1391,8 +1390,9 @@ function chapterskip(_, current, countdown)
bind_keys(o.proceed_autoskip_countdown_keybind, "proceed-autoskip-countdown", function() proceed_autoskip(true) returnend) --1.19# reposition to before graceful so binding works
1394
+
ifo.autoskip_countdown_gracefulthenreturnend--1.19# reposition to before timeout to fix graceful
1394
1395
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