Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Formatting filenames for bulk downloading galleries?
Post Flair (click to view more posts with a particular flair)
Post Body

Hello! This may have an extremely simple solution but I've spent hours trying to figure out how to understand this problem so I'm here. I'm a complete newbie to programming (still reading CODE for some perspective on the history of programming and A Byte of Python to start out).

Goal: Using gallery-dl, I've successfully gotten it working (as simple as the guides were, I took hours figuring this out). I'd like to change the filename that results from bulk downloading a gallery.

Currently: The filenames are coming out.

"{category}_{image.id}_{title}.{extension}"

Problem: This resource was available to explain the options of how to configure the program. I know what I want it to do but I have no idea what I'm actually supposed to input it into the terminal to get the result I want. I'd like to format it to something like this.

"{title} [{category}].{extension}"

I would go on about what I've already tried, like the format() method, but that'll probably just be an embarrassing amount of trial and error going in the complete wrong direction. Any help would be very much appreciated!

EDIT: Added extension.

EDIT 2: Got something different, "invalid argument". Getting closer, maybe? What I'm working with so far:

$ gallery-dl extractor.deviantart.filename "{title} [{category}].{extension}"

EDIT 3: Going about this all sorts of wrong ways. Trying to figure out how to access and edit the JSON file.

EDIT 4: A little tired from trying this so I'll continue a little later but my next gameplan is to download the JSON file, make the edits I'm looking for, and import it into gallery-dl? Who knows, but I'll try it. I think I made the mistake of sticking to the terminal.

EDIT 5: Asked a friend and figured it out. Turns out that config file didn't work so I just hardcoded it.

Author
Account Strength
100%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
19,689
Link Karma
944
Comment Karma
18,682
Profile updated: 2 days ago
Posts updated: 16 hours ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago