Merge remote-tracking branch 'upstream/master'

This commit is contained in:
blank X 2021-08-10 14:15:37 +07:00
commit 042c19e28b
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 8 additions and 0 deletions

View File

@ -65,6 +65,13 @@ function file_loaded()
return
end
function end_file()
if not ON then return end
mp.unobserve_property(skip_ads)
ranges = nil
ON = false
end
function toggle()
if ON then
mp.unobserve_property(skip_ads)
@ -79,3 +86,4 @@ function toggle()
end
mp.register_event("file-loaded", file_loaded)
mp.register_event("end-file", end_file)