plumb: add v.redd.it to mpv URL pattern matching to use reddit - randomcrap - random crap programs of varying quality
HTML git clone git://git.codemadness.org/randomcrap
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 6e572f98014c00fda062585fc6eb97be0e654b95
DIR parent 79a3b9fc6d97a826ef369e6ff72c090a61743f7a
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 31 May 2026 13:24:19 +0200
plumb: add v.redd.it to mpv URL pattern matching to use reddit
Diffstat:
M config/scripts/mpv.sh | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
DIR diff --git a/config/scripts/mpv.sh b/config/scripts/mpv.sh
@@ -24,6 +24,9 @@ if match "$text" '^(http|https)://nos\.nl/'; then
elif match "$text" '^(http|https)://.*reddit\.com/'; then
# extract saner video url (than mpv / youtube-dl).
text=$(~/.config/scripts/plumb/reddit.sh "$text")
+elif match "$text" '^(http|https)://v.redd.it/'; then
+ # extract saner video url (than mpv / youtube-dl).
+ text=$(~/.config/scripts/plumb/reddit.sh "$text")
fi
# if there is one line, just open immediately, else selectable.