summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-03-26 21:45:10 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-03-26 21:45:10 -0700
commit3a3e193872fcab16e114005cbe50d67bed690a1b (patch)
tree1113199729e33b761f6c0b5e986cb5d608783529 /home
parentf3b19139bbb8d811a6b0058b7cf031c6131ea5fc (diff)
mpvy, I do not want `--sponsorblock-remove all` to remove filler
Diffstat (limited to 'home')
-rwxr-xr-xhome/xyz/.local/bin/mpvy4
1 files changed, 2 insertions, 2 deletions
diff --git a/home/xyz/.local/bin/mpvy b/home/xyz/.local/bin/mpvy
index bb6913a6..97f92ffd 100755
--- a/home/xyz/.local/bin/mpvy
+++ b/home/xyz/.local/bin/mpvy
@@ -34,8 +34,8 @@ case $flag in
# --embed-subs is a little bit better, but still worse then direct streaming
# --sponsorblock-remove will make audio/video goes out of sync, need --force-keyframes-at-cuts which need re-encode which is slow, more see comments at the bottom of https://github.com/yt-dlp/yt-dlp/issues/871
# another way is using mpv-sponsorblock-minimal-git for streaming and sponsorblock-mpv-local for local videos
- A) yt-dlp -f "$format" --embed-subs -P "${download_dir:-"$XDG_DOWNLOAD_DIR/mpvy/"}" --sponsorblock-remove all "$url";;
- a) yt-dlp -f "$format" --embed-subs -P "${download_dir:-"$XDG_DOWNLOAD_DIR/mpvy/"}" --sponsorblock-remove all "$url" --exec 'mpv --fs --speed=2';;
+ A) yt-dlp -f "$format" --embed-subs -P "${download_dir:-"$XDG_DOWNLOAD_DIR/mpvy/"}" --sponsorblock-remove default --sponsorblock-mark default "$url";;
+ a) yt-dlp -f "$format" --embed-subs -P "${download_dir:-"$XDG_DOWNLOAD_DIR/mpvy/"}" --sponsorblock-remove default --sponsorblock-mark default "$url" --exec 'mpv --fs --speed=2';;
s) mpv --ytdl-format="$format" --ytdl-raw-options='write-sub=' --fs --speed=2 "$url";;
esac
# not sure if this is the best practice, but it seems working ;)