mikf / gallery-dl

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

[4chan] Are there config options for 4chan? #6469

Closed plshelpidkwhatimdoing closed 1 week ago

plshelpidkwhatimdoing commented 1 week ago

I'm trying to get gallery-dl to save text posts from 4chan as well as images but I just end up with a text file named "None None.txt" and it just has "None" in it. Here's what I currently have in my gallery-dl.conf

"4chan": {
    "postprocessors": [
        {
            "name": "metadata",
            "event": "post",
            "filename": "{tim} {filename}.txt",
            "mode": "custom",
            "format": "{com}"
        }
    ]
},
mikf commented 1 week ago

The post event for 4chan has a minimal set of metadata and is only triggered once at the very beginning. Your current best bet is using a file-related event (prepare, file, after, ...), but those do not include posts without a file. See https://github.com/mikf/gallery-dl/pull/3626 .

plshelpidkwhatimdoing commented 1 week ago

That worked, thanks.