Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
042c19e28b
|
@ -65,6 +65,13 @@ function file_loaded()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function end_file()
|
||||||
|
if not ON then return end
|
||||||
|
mp.unobserve_property(skip_ads)
|
||||||
|
ranges = nil
|
||||||
|
ON = false
|
||||||
|
end
|
||||||
|
|
||||||
function toggle()
|
function toggle()
|
||||||
if ON then
|
if ON then
|
||||||
mp.unobserve_property(skip_ads)
|
mp.unobserve_property(skip_ads)
|
||||||
|
@ -79,3 +86,4 @@ function toggle()
|
||||||
end
|
end
|
||||||
|
|
||||||
mp.register_event("file-loaded", file_loaded)
|
mp.register_event("file-loaded", file_loaded)
|
||||||
|
mp.register_event("end-file", end_file)
|
||||||
|
|
Reference in New Issue