po5 / mpv_sponsorblock

mpv script to skip sponsored segments of YouTube videos
GNU General Public License v3.0
531 stars 29 forks source link
mpv mpv-script sponsorblock youtube

mpv_sponsorblock

A fully-featured port of SponsorBlock for mpv.

Requirements

Installation

Move sponsorblock.lua and sponsorblock_shared into your mpv scripts folder.

mpv/scripts/
├── sponsorblock.lua
└── sponsorblock_shared
    ├── main.lua
    └── sponsorblock.py

Usage

Play a YouTube video, sponsors will be skipped automatically.

Default key bindings:

These can be remapped with the following script bindings: sponsorblock/set_segment, sponsorblock/submit_segment, sponsorblock/upvote_segment, sponsorblock/downvote_segment

Add lines in the following format to your input.conf: alt+g script-binding sponsorblock/set_segment