-
-
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
Downloading tags as separate files (for Hydrus) #135
Comments
Filenames can be specified by setting a custom filename format (e.g. With 38500ad it is now possible to write all file-metadata to a separate .json file, although that would currently be Also: an example config snippet for "danbooru": {
"filename": "{md5}.{extension}",
"postprocessors": [{"name": "metadata"}]
} |
Cross referencing: Bionus/imgbrd-grabber#1492 It is best to make it one tag per newline, and one txt file per image ( |
alternative to this is using server framework like in #146. it just need a function to convert gallery-dl metadata to hydrus compatible metadata |
@rachmadaniHaryono could you explain this further? Since Hydrus's API hasn't been released yet |
basically create a api server, which will return json data from url input. this will make gallery-dl act as parser for hydrus. |
I've added a
This will create a |
@mikf thanks for the option, is it possible to add a command flag for that (maybe |
@DonaldTsang |
@mikf thanks, what about in a python library import ( |
You need to somehow attach a One way is to use the from gallery_dl import config, job
config.set(("postprocessors",), [{
"name": "metadata",
"mode": "tags",
}])
j = job.DownloadJob("URL")
j.run() Or you can construct one yourself before calling from gallery_dl import job
from gallery_dl.postprocessor import metadata
m = metadata.MetadataPP(None, {"mode": "tags"})
j = job.DownloadJob("URL")
j.postprocessors = [m]
j.run() |
Is it possible to name the gallery file by md5 while putting the tags in a separate txt file with the same md5 hash? Bonus points if that is a default flag in gallery-dl.
that will be used for importing in https://github.com/hydrusnetwork/hydrus
The text was updated successfully, but these errors were encountered: