Replies: 1 comment
-
I don't think this is currently possible, especially the "then the relative path from the base directory of the image path" part. I'll see if I can come up with something. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Something came up that makes it so I really need to store the jsons in a separate location from the files downloaded. For other parts of the config I was able to set the base directory for the jsons but most sites use this postprocessor which I have no idea how to do that for (blacklist is truncated):
I've tried setting a base-directory in that, but it didn't work.
What I need is for the base directory to be
"/abc/environment/json/"
then"{_env[domain]}"
then the relative path from the base directory of the image path to the image location appended to that.For example, here's an image path:
/abc/archive/other/artstation.com/artist/xelabo/artstation_3480036_12129584_Sunset Shimmer .jpg
Here's the path the json should download to:
/abc/environment/json/artstation.com/artist/xelabo/artstation_3480036_12129584_Sunset Shimmer .jpg.json
In that example:
/abc/environment/json/
is the base directoryartstation.com
is"{_env[domain]}"
(filled in by my script)artist/xelabo/
is the relative path to the fileIt would take an enormous amount of work to make a separate postprocessor for every site that uses this postprocessor so hopefully there's some easy way to do this.
Does anybody know how to make this work?
Edit: I guess I should have said what I tried. I tried this but have no clue what else I could do:
I couldn't find the json when I did that.
Beta Was this translation helpful? Give feedback.
All reactions