Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
ysh
dotfiles
Commits
644ad33c
Commit
644ad33c
authored
Jul 03, 2020
by
ysh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better deal with path names containing spaces
parent
d503dbdb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
bin/biird
bin/biird
+4
-3
bin/cammy
bin/cammy
+2
-2
bin/naver
bin/naver
+2
-2
No files found.
bin/biird
View file @
644ad33c
...
...
@@ -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)
}'
bin/cammy
View file @
644ad33c
...
...
@@ -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)
}'
bin/naver
View file @
644ad33c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment