Skip to content

Commit f4bcdf9

Browse files
authored
Add parenthesis to video_duration nil check
1 parent dadaa9e commit f4bcdf9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/SimpleHistory.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,8 +2115,7 @@ function history_resume_option()
21152115
if video_time > 0 then return end
21162116
local logged_time = 0
21172117
local percentage = 0
2118-
local video_duration = mp.get_property_number('duration') or 0
2119-
2118+
local video_duration = (mp.get_property_number('duration') or 0)
21202119
list_contents = read_log_table()
21212120
if not list_contents or not list_contents[1] then return end
21222121
for i = #list_contents, 1, -1 do

0 commit comments

Comments
 (0)