feat: add sponsorblock plugin for mpv
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
*.kdbx
|
||||
*.so
|
||||
|
||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "sources/mpv-sponsorblock"]
|
||||
path = sources/mpv-sponsorblock
|
||||
url = https://github.com/TheCactusVert/mpv-sponsorblock
|
||||
@@ -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 "$@"'')
|
||||
];
|
||||
|
||||
4
home.nix
4
home.nix
@@ -16,6 +16,10 @@
|
||||
source = ./sources/fish;
|
||||
recursive = true;
|
||||
};
|
||||
".config/mpv" = {
|
||||
source = ./sources/mpv;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
7
sources/README.md
Normal file
7
sources/README.md
Normal 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
|
||||
```
|
||||
1
sources/mpv-sponsorblock
Submodule
1
sources/mpv-sponsorblock
Submodule
Submodule sources/mpv-sponsorblock added at 71f24edf30
12
sources/mpv/sponsorblock.toml
Normal file
12
sources/mpv/sponsorblock.toml
Normal 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
|
||||
Reference in New Issue
Block a user