You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imgur API returns image upload time. It can be used as the last modified time of the file. You can add an option like --timestamps for it.
To do this, you need to add a line to this. Where datetime is image['datetime'] located in download_account_images, passed to parse_id.
with open(os.path.join(path, filename), 'wb') as image_file:
req.raw.decode_content = True
shutil.copyfileobj(req.raw, image_file)
os.utime(image_file.name, (datetime, datetime))
The text was updated successfully, but these errors were encountered:
Imgur API returns image upload time. It can be used as the last modified time of the file. You can add an option like
--timestamps
for it.To do this, you need to add a line to this. Where
datetime
isimage['datetime']
located indownload_account_images
, passed toparse_id
.The text was updated successfully, but these errors were encountered: