-
-
Notifications
You must be signed in to change notification settings - Fork 996
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
[Question] How to stop redownloading txt files on kemono.party #3202
Comments
You need to define For example, Twitter: "twitter":
{
"retweets": false,
"directory": ["[gallery-dl]", "[{category}] {author[name]}"],
"filename": "[{category}] {author[name]}—{date:%Y.%m.%d}—{retweet_id|tweet_id}—{filename}.{extension}",
"size": ["orig", "4096x4096", "large", "medium", "small"],
"fallback": false,
"cards": false,
"pinned": true,
"replies": "self",
"cookies": {
"auth_token": "XXX"
},
"text-tweets": false,
"postprocessors": [{
"name": "mtime",
"event": "post"
}, {
"directory": "metadata",
"filename": "[{category}] {author[name]}—{date:%Y.%m.%d}—{retweet_id|tweet_id}.html",
"name": "metadata",
"event": "post",
"mtime": true,
"mode": "custom",
"archive": "~/gallery-dl/gallery-dl-postprocessors.sqlite",
"archive-format": "{tweet_id}_{retweet_id}_p1",
"format": "<div id='{retweet_id|tweet_id}'><h4><a href='https://twitter.com/{author[name]}/status/{retweet_id|tweet_id}'>{retweet_id|tweet_id}</a> by <a href='https://twitter.com/{author[name]}'>{author[name]}</a></h4><div class='content'>{content}</div><hr><div>{date:%Y.%m.%d %H:%M:%S}</div><hr></div><br>"
}]
}, |
@AlttiRi |
Thanks for the answer. |
No, the only way to not overwrite an existing metadata file is with an archive. |
Okay, got it. Thanks! |
I recommend to use {
"name": "mtime"
} like it's in my example above. Even while the files will be overwrote, the metadata file's mtime will be the same each time. |
@AlttiRi Got it. Thank you very much. |
When I set the config as above
The previously downloaded image file won't re-downloaded as I intended.
However, the metadata(post) txt files are redownloading? modifying? every time when I downloading.
Is it possible to avoid redownloading an already created metadata(post) txt file?
The text was updated successfully, but these errors were encountered: