From 42376615b6423439198100c89fc61815d166560b Mon Sep 17 00:00:00 2001 From: Matheus Albino Date: Fri, 21 Jun 2024 23:36:32 -0300 Subject: [PATCH] Updates gdl-update-todo.sh's default behaviour and fixes URL grep --- scripts/shell/gdl-update-todo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/shell/gdl-update-todo.sh b/scripts/shell/gdl-update-todo.sh index 0e0af6e..1a1122f 100755 --- a/scripts/shell/gdl-update-todo.sh +++ b/scripts/shell/gdl-update-todo.sh @@ -12,7 +12,7 @@ show_help() { } should_abort_on_found=true -should_parallel_download=false +should_parallel_download=true custom_grep_search='' while [ "$#" -gt 0 ]; do @@ -28,7 +28,7 @@ done gallery_dl_path=/mnt/e/home/Documents/data-hoarding cd "$gallery_dl_path" -urls=($(grep -v "filter" -i "$gallery_dl_path/todo.md" | grep -Eo "(http|https)://[a-zA-Z0-9./?~?=_%:-]*")) +urls=($(grep -v "filter" -i "$gallery_dl_path/todo.md" | grep -Eo "(mastodon:)?(http|https)://[a-zA-Z0-9.(/~@)?=_%:-]*")) if [ ! -z "$custom_grep_search" ]; then filtered_urls=()