You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the config file I pass through to the cli. it works great. it creates a table called archive and stores the hashes in the archive to avoid downloading 'most' duplicates (filters or added subtitles or alternate cropping or whatever wont be caught obviously).
Is there a way to store some additional metadata in the same table as an additional column? I would like to save some metadata of the first instance of that hash to the archive. I can add metadata to the archive-format, but then if duplicate hash videos don't have the same metadata then it would download those too...
I believe this is the relevant code to check for interference and I think the answer is I can do it, but I am not sure if am missing somewhere else: https://github.com/mikf/gallery-dl/blob/2dfdc92b21b65f883e229e4235514dfeccd7a4d6/gallery_dl/archive.py
{
"extractor": {
"path-restrict": "^0-9A-Za-z_.",
"#": "removing the period from path-restrict will remove it from the extension will give x_mov instead of x.mov use R./_/ instead WHY?",
"archive-event": ["file"],
"archive-format": "{hash}",
"archive-prefix": "",
"filename": "{title|empty|filename:R./_/}_{id}.{extension}"
},
"postprocessors":
[
{
"name": "mtime"
},
{
"name": "metadata",
"mtime": true
}
]
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is the config file I pass through to the cli. it works great. it creates a table called archive and stores the hashes in the archive to avoid downloading 'most' duplicates (filters or added subtitles or alternate cropping or whatever wont be caught obviously).
Is there a way to store some additional metadata in the same table as an additional column? I would like to save some metadata of the first instance of that hash to the archive. I can add metadata to the archive-format, but then if duplicate hash videos don't have the same metadata then it would download those too...
I believe this is the relevant code to check for interference and I think the answer is I can do it, but I am not sure if am missing somewhere else:
https://github.com/mikf/gallery-dl/blob/2dfdc92b21b65f883e229e4235514dfeccd7a4d6/gallery_dl/archive.py
Beta Was this translation helpful? Give feedback.
All reactions