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=()