Skip to content

Commit

Permalink
Create empty cookie file if not created
Browse files Browse the repository at this point in the history
  • Loading branch information
Akianonymus committed Jan 26, 2023
1 parent 37eafa2 commit 7fa2891
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions release/bash/gdl
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,7 @@ _curl --compressed $CURL_PROGRESS ${3-} \
"${4:---header}" "${5-}" \
-c "${TMPFILE}_${file_id_download_file}_COOKIE" -o "${TMPFILE}_${file_id_download_file}_misc" \
"${2:?}"||return 1
print '' >>"${TMPFILE}_${file_id_download_file}_misc"
for _ in 1 2;do _clear_line 1;done
}
_common_stuff(){
Expand Down
1 change: 1 addition & 0 deletions release/sh/gdl
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,7 @@ _curl --compressed $CURL_PROGRESS ${3-} \
"${4:---header}" "${5-}" \
-c "${TMPFILE}_${file_id_download_file}_COOKIE" -o "${TMPFILE}_${file_id_download_file}_misc" \
"${2:?}"||return 1
print '' >>"${TMPFILE}_${file_id_download_file}_misc"
for _ in 1 2;do _clear_line 1;done
}
_common_stuff(){
Expand Down
2 changes: 2 additions & 0 deletions src/common/download-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ _cookies_and_document_stuff() {
"${4:---header}" "${5:-}" \
-c "${TMPFILE}_${file_id_download_file}_COOKIE" -o "${TMPFILE}_${file_id_download_file}_misc" \
"${2:?}" || return 1
# ensure that the file is created
print '' >> "${TMPFILE}_${file_id_download_file}_misc"
for _ in 1 2; do _clear_line 1; done
}

Expand Down

0 comments on commit 7fa2891

Please sign in to comment.