Copy from mpv-sponsorblock, made changes for bilibili website.
Build the plugin:
cargo build --release --locked
MPV
Copy the lib generated to your scripts
folder:
cp ./target/release/libmpv_bilibili_sponsorblock.so ~/.config/mpv/scripts/bilibili_sponsorblock.so
MPV
Installation for Windows is available : https://mpv.io/manual/stable/#c-plugins.
I don't use Windows. Feel free to make a pull request.
Copy the exemple configuration file bilibili-sponsorblock.toml
into your MPV folder:
cp ./bilibili-sponsorblock.toml ~/.config/mpv/bilibili-sponsorblock.toml
If no configuration file is found, only the sponsors segments will be skipped as specified by the API.
A segment is the combination of a category and an action type.
Play a Bilibili video and segments you chose in the configuration file will be skipped or muted.