Gallery-dl: [twitter] Original file name

Created on 27 Oct 2020  路  3Comments  路  Source: mikf/gallery-dl

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.

Most helpful comment

You can use gallery-dl -K <url> to list keywords for that URL.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blackoutworm picture blackoutworm  路  5Comments

kattjevfel picture kattjevfel  路  5Comments

jtara1 picture jtara1  路  6Comments

ucok66 picture ucok66  路  6Comments

OvertPerson picture OvertPerson  路  5Comments