-
-
Notifications
You must be signed in to change notification settings - Fork 975
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
This user's avatar is too old to generate a proper date
for, so you get a special null
object instead. It didn't support a date - datetime(...)
operation, but it does now (https://github.com/mikf/gallery-dl/commit/ad73789256502426c6d39931cf9196f67e008751).
#6009
Comments
I tried it out.
this can work |
Just Also, you can still post in closed issues. |
@mikf |
|
@mikf |
"avatar": {
"filename": {
"date": "[avatar] {tweet_id} {date:Olocal/%Y-%m-%d}.{extension}",
"" : "[avatar] {tweet_id}.{extension}"
}
} All you had to do was to replace |
- Make it compatible with functions expecting integer arguments - Simplify and reuse some method definitions
This user's avatar is too old to generate a proper
date
for, so you get a specialnull
object instead. It didn't support adate - datetime(...)
operation, but it does now (ad73789).You could also use conditional format strings to test if
date
has an actual value.Originally posted by @mikf in #6007 (comment)
If I want to customize it , how to fix it?
The text was updated successfully, but these errors were encountered: