Skip to content

Commit

Permalink
Show original and redirected url in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Mar 25, 2023
1 parent fe22bad commit b2fd3ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gdown/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,11 @@ def download(
print("Downloading...", file=sys.stderr)
if resume:
print("Resume:", tmp_file, file=sys.stderr)
print("From:", url_origin, file=sys.stderr)
if url_origin != url:
print("From (uriginal):", url_origin, file=sys.stderr)
print("From (redirected):", url, file=sys.stderr)
else:
print("From:", url, file=sys.stderr)
print(
"To:",
osp.abspath(output) if output_is_path else output,
Expand Down

0 comments on commit b2fd3ab

Please sign in to comment.