Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set downloaded file time to last modified time on server #277

Closed
pxssy opened this issue May 23, 2019 · 3 comments
Closed

Set downloaded file time to last modified time on server #277

pxssy opened this issue May 23, 2019 · 3 comments

Comments

@pxssy
Copy link

pxssy commented May 23, 2019

Is it possible to set the file last modified to the time downloaded off the server?

Down them all was able to, and it's been a very great aid for me as 2ndary sorting.

I don't code so i don't know what goes into doing that, but it'd be a really great help if you could implement something like that!

@pxssy
Copy link
Author

pxssy commented May 23, 2019

Additionally, i'd like to ask what is the way you use to name twitter files? I understand they're related to the ID as identical files have the same name, but i can't find a relationship between the ID and the string of numbers you name the files as.

If possible, can there be a toggle as to switch naming back to the twitter ID system?

@Hrxn
Copy link
Contributor

Hrxn commented May 23, 2019

With regard to the filenames, here's how you can set the name to whatever you like.

By default, the extractor for Twitter does this:

filename_fmt = "{tweet_id}_{num}.{extension}"

To see some possible values for your case, try something like this:
gallery-dl --list-keywords <YOUR-URL-HERE>

@mikf
Copy link
Owner

mikf commented Jul 1, 2019

File modification times are now adjusted according to the Last-Modified headers sent by a remote server. This is enabled by default and can be disabled with --no-mtime or downloader.mtime.

@mikf mikf closed this as completed Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants