Currently gallery-dl names files on a "per site" basis with a "default" that can be given.
But.
Would it be possible to have the file naming based on the source embed post instead of the redirected site? Like: if i have a twitter post that contains a youtube video... follow the twitter naming convention instead of the youtube naming convention, using the source post to solve any unknowns.
I can't find such an option.
I can understand this to be an annoyance in the case of people "reply-twitting" and stuff like that where images get misattributed or other similar things.
The category-transfer option should maybe do that. It lets child extractors spawned for downloading embedded content inherit the config values of its parent.
will see if that creates any problem, i would not want the downloader to spawn a bunch of "none none none"
using
"reddit": {
"directory": ["{category}", "{subreddit}"],
"category-transfer": true,
"comments": 0,
"morecomments": false,
"date-min": 0,
"date-max": 253402210800,
"date-format": "%Y-%m-%dT%H:%M:%S",
"videos": true,
"user-agent": "Python:gallery-dl:0.8.4 (by /u/mikf1)"
},
causes :
~/gallery-dl/reddit/None/FILENAME
instead of
~/gallery-dl/reddit/SUBREDDIT_NAME/FILENAME
@hellupline try parent-directory instead of category-transfer for Reddit.
This will yield ~/gallery-dl/reddit/SUBREDDIT_NAME/OTHER_CATEGORY/FILENAME as path for files from sites other than Reddit, and you can remove the OTHER_CATEGORY part by setting an empty directory for that specific site (or in general): "directory": []
okay, found (more or less what troubles me.
the "base directory" for parent-directory is not base-directory,
but base-directory with the added directory
So you quickly get to large amounts of nested directories.
is this the desired output?
Yes, because anything else doesn't make much sense and that's the only way to put files from imgur, gfycat, etc linked in Reddit posts into the same directory as files coming from Reddit itself. Enabling this behavior is more or less the only reason why ´parent-directory´ exists in the first place.
What exactly are you trying to do where parent-directory might help and nested directories become a problem?
By the way, the new parent-metadata option from #1364 might be helpful if you want to use the same metadata for filenames on different sites, but there is also a good chance this'll only work for reddit with imgur, gfycat, etc.
mostly when exploring galleries with "comics" that reference previous pages
it becomes hard because the nested directories go back all the pages to the
beginning of the "comic".
i solved by putting a "." directory before the gallery firectory.
now the directories do not nest anymore.
On Tue, Mar 23, 2021, 21:24 Mike Fährmann @.*> wrote:
Yes, because anything else doesn't make much sense and that's the only way
to put files from imgur, gfycat, etc linked in Reddit posts into the same
directory as files coming from Reddit itself. Enabling this behavior is
more or less the only reason why ´parent-directory´ exists in the first
place.What exactly are you trying to do where parent-directory might help and
nested directories become a problem?
By the way, the new parent-metadata option from #1364
https://github.com/mikf/gallery-dl/issues/1364 might be helpful if
you want to use the same metadata for filenames on different sites, but
there is also a good chance this'll only work for reddit with imgur,
gfycat, etc.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mikf/gallery-dl/issues/827#issuecomment-805223212,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH74GWVJDJ2ZIMJB4FIRGQLTFD2HHANCNFSM4N5EY2IQ
.
Most helpful comment
using
causes :
instead of