Skip to content

Is there a way to have a subfolder created in the base path for each download link in the script command? #2799

Answered by mikf
Roccobot asked this question in Q&A
Discussion options

You must be logged in to vote

It is generally not possible to sort files by task/job/input url (unless you manually set a path with, for example, -D), but just sorting by username, which is what I think you want to do (#2799 (reply in thread)), can be done by using a different directory setting than the default.

reddit.com/user/one uses ["{category}", "{subreddit}"] by default (*). Set it to ["{category}", "{author}"] or just ["{author}"] in your config file and gallery-dl will sort by user/author instead of by subreddit.

(*)
Default (and custom) filename/directory format strings can be seen with -E / --extractor-info

$ gallery-dl -E reddit.com/user/one
Category / Subcategory
  "reddit" / "user"

Filename format (defa…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Roccobot
Comment options

@Roccobot
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Roccobot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants