-
-
Notifications
You must be signed in to change notification settings - Fork 951
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
[Help] gallery-dl output log #3908
Comments
https://github.com/mikf/gallery-dl/blob/master/docs/options.md#output-options
|
how exactly does this log file work? is it deleted after every rerun ? also where is this log file stored? |
Here's my log file config:
Put this in the "output" section of your gallery-dl .conf file. The log file is stored in a directory called "logs" inside your gallery-dl root folder. It will keep a log of your latest gallery-dl run, but every new run will overwrite this file. Search for "[error]" in some notepad program (I recommend notepad++, it can give you a nice summary of your search results), and you'll get all of the posts that failed to download. |
@skulkexpert I started using this random one that I found from an old post on here.
|
Here's my full output config:
The Other than that, the actual contents of your logfile config are similar to mine. The only real difference is that your logs will be appended to the same file after each run, since you have Your timestamp is slightly different from mine. The The path that I have set is going to create a directory inside the root folder from where you are calling gallery-dl, while your config has a static path that goes to a predefined location inside of your C drive. The |
Hi skulkexpert, I am also interested in log file How to define its path to create a UserName001_UserId_DateofDownload subfolder with the logfile in |
Is this ok, or it should be in other format?
|
Is the trailing underscore in I don't recommend putting the user ID after the username cuz the latter can be changed, which makes sorting much harder when it does change. |
with the trailing underscore in /{author[username]}_/ I would like to sign that this is a container folder, that contains
and and this log folder would mainly be used to have the user ID in its name I plan to sort artists by user name, I know that user names could change and I find this somewhat confusing too. yet again main folder names with user IDs would be too long for me |
I am by no means a gallery-dl expert, but I dont think that the logfile can be configured like this. I think I tried to figure something similar out before, but the logfile config is associated with the "output" part of the config, as in my config above, not individual extractors (deviantart, etc). You'd have to define a separate log for each of your extractors to make this work, and I'm not sure if this is possible. Maybe something similar to what you want can be done with postprocessors or something? @mikf can you confirm this? |
with description folders combined in a there would be
and
|
This is correct. Logging output can only be configured globally with To have different settings per site, you could use a wrapper script around gallery-dl that uses different config files depending on the input URL, but this cannot be done with a single config file by setting output options per category. |
mikf, could you please code custom configurable output options / logfiles per category into gallery-dl? |
rautamiekka, I would like to ask two things from you what does
why do you use .json extension for posts
|
@skulkexpert I actually downloaded a few things with it written just like this so I guess the config was working and I don't have to change anything ? Or should I still change it? Also thank you very very much for explaining all of that in detail, I appreciate it so much :)
|
No, at least not before v2.0
Reading (and understanding) the docs helps. |
custom configurable output options / logfiles per category why not before v2.0 ? |
No problem :) If it works the way you want it to, you probably dont have to change anything. Though, if this behavior changes, you may want to look into it. I'm not sure if this is a strict requirement, but that's how most json configurations work. You may have run gallery-dl with the Either way, I think that it's best to keep it organized and have the logfile config inside the output config, to ensure that it will always work. Compare your gallery-dl config file to the example given in the repository if you get some error message. As mentioned above, you can also read up on what the different settings mean in the documentation (though it can be pretty technical). If you are wondering about anything else involving gallery-dl configs, feel free to ask. I may not be the most skilled at using it, but I have messed around with the config at it. And there are likely more knowledgeable people here who are willing to help, too. |
I could find compare postprocessor in but why is .json extension for posts recommended or default, |
When the same file exists, we add a number to the name to easily see duplicates. The default is
Although I can't find any mention of the post mode for the metadata postprocessor from current code (GitHub's search feature is stupid and highly useless, almost like a full-text search with or without wildcards is too much to implement), it seems that the A |
Thank you for your answer, could you please give me examples of the mentioned informations that you wanted to get from post.JSON ? |
@skulkexpert so it turns my log file is emptying itself when it gets too large, here's the current config, how do i edit this to make it never empty the log file no matter how large it gets |
Huh? I mean, you could always change What do you mean, your logfile is emptying itself? And what is too large? |
It's not gallery-dl that's emptying your log file depending on its size. |
You are correct, after setting up the folder and path again there seems to be no more issue anymore. SIDENOTE: would it be possible to add the event of gallery-dl coming across a duplicate and skipping the download inside the logs? Reason for this #3960 (comment) |
Would it be possible to get gallery-dl to produce some sort of output log of all the links that it downloads, that way I can just search the word "error" in note pad and figure out which files failed to download.
Windows 10 command prompt only has so much space, after a few hours of running gallery-dl it begins to run out of room therefore simply just doing ctrl-A and ctrl-C and ctrl-V from the cmd window would not work.
The text was updated successfully, but these errors were encountered: