Add a property that can be used in the naming patter that would hold the value of the original file name/id.
For example, for https://pbs.twimg.com/media/CGMNYZvW0AIVoom?format=jpg&name=orig it is CGMNYZvW0AIVoom.
That's precisely what {filename} is for.
{
"extractor": {
"twitter": {
"filename": "{filename}.{extension}"
}
}
}
Lol, so simple. I tried {name} and {file}, but forgot to test the obvious case.
Also it was not listed here, I thought that there is no such attribute.
https://github.com/mikf/gallery-dl/blob/18213dc5ba753b4b471f6de23e357977587685ff/gallery_dl/extractor/twitter.py#L149-L164
Where to check the full list of available options?
In the extractor file there is only this line that refers to filename, but this is the other thing. https://github.com/mikf/gallery-dl/blob/18213dc5ba753b4b471f6de23e357977587685ff/gallery_dl/extractor/twitter.py#L26
You can use gallery-dl -K <url> to list keywords for that URL.
Most helpful comment
You can use
gallery-dl -K <url>to list keywords for that URL.