Replies: 1 comment 3 replies
-
The trick is simply to add an additional element into the "reddit":
{
"submission":
{
"archive-format": "s_{subreddit}{filename}",
"directory": {
"locals().get('is_gallery')": ["Reddit", "S", "{subreddit!C}", "{title[:120]!t:?/_/R /_/}{id}"],
"" : ["Reddit", "S", "{subreddit!C}"]
},
"filename": {
"locals().get('is_gallery')": "{title[:120]!t:?/_/R /_/}{id}{num:?_//>02}.{extension}",
"" : "{title[:120]!t:?/_/R /_/}{id}.{extension}"
},
},
}
What do you mean with subfolder here? Reddit does not integrate galleries/album pages from Imgur, as far as I know. If you have an example link that shows otherwise, I'd like to see it myself. If you simply mean single images hosted on Imgur that are directly linked on Reddit: Yes, it is possible to take the title from reddit. Just two steps:
"parent-directory": true,
"parent-metadata": "_reddit", gallery-dl extracts stuff hosted on Imgur but coming in from Reddit by spawning an Imgur child-extractor.
"imgur":
{
"image":
{
"directory": {
"'_reddit' in locals()" : [],
"extension in ('mp4', 'webm')" : ["Imgur", "Anims"],
"" : ["Imgur", "Pics"]
},
"filename": {
"'_reddit' in locals()" : "{_reddit[title][:180]!t:?/_/R /_/}{_reddit[id]}.{extension}",
"not locals().get('title')" : "{id}.{extension}",
"" : "{title!t:R /_/}_{description!t:?/_/}{id}.{extension}"
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to make gallery-dl create a folder and place files from the same gallery in this folder? How would i do this?
Is it possible to only show the number in front of files only when the number is larger than 0?
I'm tried
But it doesn't seem to support regex
How do I make the folder name the same as the reddit post title and have the filename not have "None" prepended to it?
This my current config file i'm using
https://bin.disroot.org/?06b10acac079bc63#7DRkZg9FDdhN3ocvjQQQjifcGRVZ2Z7tQWc9HShJsTLD
Beta Was this translation helpful? Give feedback.
All reactions