Commit 644ad33c authored by ysh's avatar ysh

better deal with path names containing spaces

parent d503dbdb
......@@ -9,7 +9,8 @@ curl -s -H 'Authorization: Bearer AAAAAAAAAAAAAAAAAAAAAFZ2EwEAAAAATWDhyMLlRYX4PI
| jq -r '.extended_entities.media[].media_url_https' \
| sed 's/$/?name=orig/' \
| aria2c -i - --auto-file-renaming=false \
| awk '/Download complete:/ {
print $6
}'
| awk -F': ' '
/Download complete:/ {
print $(NF)
}'
......@@ -14,8 +14,8 @@ curl -sL "$1" \
) | select(.is_video? == false) | .display_url ' \
| uniq \
| aria2c -i - --auto-file-renaming=false \
| awk '
| awk -F': ' '
/Download complete:/ {
print $6
print $(NF)
}'
......@@ -7,9 +7,9 @@ curl -sL "$1" \
| sed 's|data-src="|data-src="\n|g; s/"src" : "/"src" : "\n/g' \
| sed 's|^[^(https://)].*||; s/\.jpg.*/\.jpg/; s/\.JPG.*/\.jpg/; s|\.png.*|\.png|; s|\.gif.*|\.gif|' \
| aria2c -j 1 -i - \
| awk '
| awk -F': ' '
/Download complete:/ {
print $6
print $(NF)
}
/ERROR/ {
print "# " $0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment