mikf / gallery-dl

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

How to create sub directory? #5669

Closed AFGreeneye closed 5 months ago

AFGreeneye commented 5 months ago

I want to make a sub directory for "{channelname!C}" inside the "{author['username']!C}{subcategory!C}" but I don't know how! I tried to use "/" but it did not work.

{
    "extractor": {
        "kemonoparty": {
            "sleep-request": [1.0, 2.0],
            "metadata": true,
            "username": "xxx",
            "password": "xxx",
            "base-directory": "D:/XXX/Picture/Kemono/",
            "discord": {
                "directory": ["{author['username']!C}_{subcategory!C}/{channel_name!C}"],
                "filename": "{author['username']}_{subcategory}_{date:%Y.%m.%d}_{filename}.{extension}"
            },
mikf commented 5 months ago

Add another entry to the directory list.

"directory": ["{author['username']!C}_{subcategory!C}",  "{channel_name!C}"],
mikf commented 5 months ago

author['username'] isn't defined for kemono, by the way.

AFGreeneye commented 5 months ago

author['username'] isn't defined for kemono, by the way.

Well, it is what gallery-dl -K shows