1

feat: add sponsorblock plugin for mpv

This commit is contained in:
Himadri Bhattacharjee
2023-07-09 09:35:15 +05:30
parent 89716801ee
commit 829e81b3e9
7 changed files with 38 additions and 8 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
*.kdbx
*.so

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "sources/mpv-sponsorblock"]
path = sources/mpv-sponsorblock
url = https://github.com/TheCactusVert/mpv-sponsorblock

View File

@@ -115,7 +115,6 @@
description = "Himadri Bhattacharjee";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
aircrack-ng
bettercap
blackbox-terminal
cargo
@@ -145,12 +144,11 @@
pwntools
python312
rust-analyzer
rustfmt
rustc
rustfmt
rustscan
signal-desktop
tor-browser-bundle-bin
wifite2
wine
yt-dlp
];
@@ -211,24 +209,28 @@
# $ nix search wget
environment.systemPackages = with pkgs; [
# Need virtualenv for waydroid-scripts
# this helps us enable libhoudini
adw-gtk3
aircrack-ng
bat
exa
gnomeExtensions.blur-my-shell
gnomeExtensions.caffeine
gnomeExtensions.rounded-window-corners
helix
iw
macchanger
mpv
# Need virtualenv for waydroid-scripts
ntfs3g
openssl
openssl.dev
ripgrep
virtualenv
wget
p7zip
pciutils
ripgrep
# this helps us enable libhoudini
virtualenv
wget
wifite2
wl-clipboard
(writeScriptBin "sudo" ''exec doas "$@"'')
];

View File

@@ -16,6 +16,10 @@
source = ./sources/fish;
recursive = true;
};
".config/mpv" = {
source = ./sources/mpv;
recursive = true;
};
};
};
}

7
sources/README.md Normal file
View File

@@ -0,0 +1,7 @@
# Compiling the Sponsorblock library
```sh
cd mpv-sponsorblock
cargo build --release --locked
cp ./target/release/libmpv_sponsorblock.so ../mpv/scripts/sponsorblock.so
```

View File

@@ -0,0 +1,12 @@
# Server address
server_address = "https://sponsor.ajay.app"
# Categories: sponsor, selfpromo, interaction, poi_highlight, intro, outro, preview, music_offtopic, filler, exclusive_access
categories = ["sponsor", "selfpromo", "interaction", "poi_highlight", "intro", "outro", "preview", "music_offtopic", "filler", "exclusive_access"]
# Action types: skip, mute, poi, full
action_types = ["skip"]
# Get segments for a video with extra privacy
privacy_api = false
# Third party YouTube domains like Piped, Invidious or CloudTube
domains = ["piped.kavin.rocks", "invidious.kavin.rocks"]
# Use OSD when a segment is skipped or muted
skip_notice = false