mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
10.68k stars 881 forks source link

Save Twitter downloads in the [account name] [filename] format? #5761

Closed Scrooge200FES closed 1 week ago

Scrooge200FES commented 1 week ago

When I download from Twitter, the files get saved in a directory named after the account handle, then inside that directory is each file (using a name like) . I want to cut this down so each file is named after the account handle, then the file.

For example: "aloesirm 1210997529422094336_1.jpg" rather than "aloesirm/1210997529422094336_1.jpg".

This is my current configuration. I've tried changing it to remove the comma, but it doesn't seem to have any effect. "twitter": { "likes": { "directory": ["{category}", "{author[name]}"] } }

komoreshi commented 1 week ago

Did you still want them downloaded into a directory named after the account handle? If not, use this:

"twitter":
        {
            "filename": "{author['name']} {tweet_id}_{num}.{extension}"
            "directory": ["{category}"]
        },

Otherwise, just replace the directory value of the config with ["{category}", "{author[name]}"]

Scrooge200FES commented 1 week ago

I don't still want them in different directories, just a core one.

komoreshi commented 1 week ago

This will work then.

"twitter":
        {
            "filename": "{author['name']} {tweet_id}_{num}.{extension}"
            "directory": ["{category}"]
        },