We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ad3701 + f4bcdf9 commit 48d6828Copy full SHA for 48d6828
scripts/SimpleHistory.lua
@@ -2115,7 +2115,7 @@ function history_resume_option()
2115
if video_time > 0 then return end
2116
local logged_time = 0
2117
local percentage = 0
2118
- local video_duration = mp.get_property_number('duration')
+ local video_duration = (mp.get_property_number('duration') or 0)
2119
list_contents = read_log_table()
2120
if not list_contents or not list_contents[1] then return end
2121
for i = #list_contents, 1, -1 do
0 commit comments