-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file naming convention #827
Comments
The |
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 :
instead of
|
@hellupline try This will yield |
okay, found (more or less what troubles me. the "base directory" for 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 By the way, the new |
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
<#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
<#827 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH74GWVJDJ2ZIMJB4FIRGQLTFD2HHANCNFSM4N5EY2IQ>
.
|
actually i am having similar problems, not sure if it's big enough to be called problems though.
|
@bluerthanever {
"extractor": {
"reddit": {
"directory": ["{blah}", "{blah}"],
"parent-metadata": "_reddit_"
},
"gfycat": {
"directory": {
"'_reddit_' in locals()": ["{bleh}", "{bleh}"],
"" : ["{pfff}", "{pfff}"]
}
}
}
} Maybe just enabling |
wow. never knew i could use it like that! that's amazing. |
Small correction: |
my fault, haha. thanks again. |
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 text was updated successfully, but these errors were encountered: