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.
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.
Subreddit
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnprogra...