summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter2024-04-19 16:43:01 +0100
committerPeter2024-04-19 16:43:01 +0100
commite7cb73486340ea2f8f47db4415a53c7e034c2397 (patch)
treed64cca5c0bab0979f2fe70dece62793be4b6a603
parent1df09bbc02225a3b8ecb6bf4cf68c3125b022c0f (diff)
downloaddotfiles-e7cb73486340ea2f8f47db4415a53c7e034c2397.tar.gz
dotfiles-e7cb73486340ea2f8f47db4415a53c7e034c2397.tar.bz2
dotfiles-e7cb73486340ea2f8f47db4415a53c7e034c2397.zip
Ignore youtube-dl in processing script
-rwxr-xr-x.local/bin/comicviewer2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/comicviewer b/.local/bin/comicviewer
index 9eafc6d..c8be713 100755
--- a/.local/bin/comicviewer
+++ b/.local/bin/comicviewer
@@ -4,7 +4,7 @@ function _curl() { curl -L --silent -A \"Mozilla\" "$@" ; }
function _view() { imv -f - ; }
function grab() { _curl "$1" | tr "\"" "\n" ; }
-if [[ $1 =~ youtube.com ]]; then mpv --fullscreen --volume=100 "$@"
+if [[ $1 =~ youtube.com ]]; then mpv --ytdl=no --fullscreen --volume=100 "$@"
elif [[ $1 =~ arcaderage.co ]]; then _curl "$(grab "$@" | awk -F"?" '/uploads/ {print $1;exit}')" | _view
elif [[ $1 =~ Buttersafe ]]; then _curl "$(grab "$@" | awk '/comics/')" | _view
elif [[ $1 =~ commitstrip.com ]]; then _curl "$(grab "$@" | awk '/uploads/ && !/Template/')" | _view