Compare commits

...

8 Commits

Author SHA1 Message Date
blank X 042c19e28b
Merge remote-tracking branch 'upstream/master' 2021-08-10 14:15:37 +07:00
jouni b1ed75df1a Merge pull request 'Fix playlist playback' (#3) from nixx/mpv_sponsorblock_minimal:fix-playlist into master
Reviewed-on: https://codeberg.org/jouni/mpv_sponsorblock_minimal/pulls/3
2021-08-07 17:56:50 +02:00
nixx a6a97fa09c Unload ranges and turn off on end of file 2021-08-07 15:11:43 +02:00
Jouni 3b25399072 Merge branch 'test' 2021-04-14 22:48:44 +03:00
JanBecker f1cf9f4752 Fixed Error with hypens in Youtube-IDs
Changed regex to find the youtube-IDs in filenames like
"This\ Epic\ Studio\ Tour\ Almost\ Killed\ Me\!\!-zk97ywS-fGc.mkv",
where previously only "fGc" was matched.
2021-04-14 16:38:47 +02:00
Jouni 65e13958f2 add changes from the original mpv sponsorblock 2021-04-12 19:55:31 +03:00
jouni 95ab1f572c Merge pull request 'Search for Youtube-IDs in local files' (#1) from JanBecker/mpv_sponsorblock_minimal:master into master
Reviewed-on: https://codeberg.org/jouni/mpv_sponsorblock_minimal/pulls/1
2021-04-11 22:50:48 +02:00
JanBecker e2ae5cd409 Search for Youtube-IDs in local files
If a file is downloaded with youtube-dl, the youtube-ID remains in the filename. sponsorblock-minimal should find that ID and skip segments in downloaded youtube-videos.
2021-04-11 19:12:52 +02:00
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)