Go to file
blankie 8bcc5d180d
Fix 400s/empty server responses
https://github.com/ajayyy/SponsorBlock/issues/1819#issuecomment-1667166456
2023-08-19 22:15:23 +10:00
LICENSE Initial commit 2022-06-22 10:03:35 +07:00
README.md Initial commit 2022-06-22 10:03:35 +07:00
sponsorblock_lm.lua Fix 400s/empty server responses 2023-08-19 22:15:23 +10:00

README.md

mpv_sponsorblock_lm

Another Sponsorblock implementation for mpv, just a bit less minimal than mpv_sponsorblock_minimal. sha256sum and curl are required.

Supported

  • K-Anonymity
  • Skip and mute segments
  • Full video labels
  • Whitelisting channels

Unsupported

  • Point of interest/Highlight segments
  • Local database
  • Submitting segments or votes

Configuration

The config file should be placed in script-opts/sponsorblock_lm.conf in mpv's config folder (usually $XDG_CONFIG_HOME/mpv or ~/.config/mpv). Example config:

# Enderman, LockPickingLawyer
whitelisted_channels=UCWb-66XSFCV5vgKEbl22R6Q UCm9K6rby98W8JigLoZOh6FQ
find_id_from_title=yes

Available Options

  • api_url: URL pointing to the Sponsorblock server's API. (default: https://sponsor.ajay.app/api)
  • categories: Space-seperated list of categories to skip/mute/warn. (default: sponsor interaction music_offtopic exclusive_access)
  • whitelisted_channels: Space-seperated list of channel IDs to ignore. Sponsor segments will not be fetched. Channel IDs are only fetched based on the video's title (see find_id_from_title). (default: none)
  • find_id_from_filename: Finds video ID from a filename in the form of ...-ID.three or four alphanumberic characters. (default: yes)
  • find_id_from_title: Finds video and channel ID from the video title in the form of ... (ID by CHANNELID). (default: no)

By default, pressing b will toggle between enabling and disabling Sponsorblock (segments will still be fetched) . To bind it to both b and s, add s script-binding sponsorblock_lm/toggle to mpv's input.conf. To unbind b, add b ignore.