]> git.rmz.io Git - dotfiles.git/commitdiff
rifle: support mobile links for youtube too
authorSamir Benmendil <samir.benmendil@ultrahaptics.com>
Tue, 25 Jul 2017 12:25:46 +0000 (13:25 +0100)
committerSamir Benmendil <samir.benmendil@ultrahaptics.com>
Tue, 25 Jul 2017 12:25:46 +0000 (13:25 +0100)
ranger/rifle.conf

index 610f39bbc55df6a62da271442401b42bc6a68211..1cac50cbd3e2c675d1f12f667c8106d8936f63b3 100644 (file)
@@ -49,8 +49,8 @@
 # only running the current file even if you have marked multiple files.
 
 # Play videos with mpv
-match ^https?://www.youtube.com/watch\?, has mpv, X, terminal = mpv -- $1
-match ^https?://www.youtube.com/watch\?, has mpv, X, flag f   = mpv --quiet -- $1
+match ^https?://(www|m).youtube.com/watch\?, has mpv, X, terminal = mpv -- $1
+match ^https?://(www|m).youtube.com/watch\?, has mpv, X, flag f   = mpv --quiet -- $1
 match ^https?://youtu.be/,               has mpv, X, terminal = mpv --quiet -- $1
 match ^https?://youtu.be/,               has mpv, X, flag f   = mpv --quiet -- $1