Multiple directories for single site #9092
-
|
Having a bit of trouble figuring out how to set multiple directories for a single site. I've tried to use the example under extractor.*.directory as a basis, but running into some roadblocks. What I'm trying to do is change the set directory path depending on whether certain tags are detected for a given work on Mangadex, but it doesn't seem to be working. Here's the part of my config file for reference: "directory": I think part of the issue is in the single quote (') in the tag name, but as far as I can tell the way to properly escape it is to just use two singles (''). Any idea what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It is the single quote that's the problem, but you handle it by either escaping it with a backslash "directory":
{
"'Girls\\' Love' in tags": ["Yuri", "{category}", "{demographic}", "{rating}", "{manga} - {author[0]}", "{volume:?v/ />02}c{chapter:>03} {chapter_minor}{title:?: //}"],
"": ["{category}", "{demographic}", "{rating}", "{manga} - {author[0]}", "{volume:?v/ />02}c{chapter:>03}{chapter_minor}{title:?: //}"]
} "directory":
{
"'''Girls' Love''' in tags": ["Yuri", "{category}", "{demographic}", "{rating}", "{manga} - {author[0]}", "{volume:?v/ />02}c{chapter:>03} {chapter_minor}{title:?: //}"],
"": ["{category}", "{demographic}", "{rating}", "{manga} - {author[0]}", "{volume:?v/ />02}c{chapter:>03}{chapter_minor}{title:?: //}"]
} |
Beta Was this translation helpful? Give feedback.
It is the single quote that's the problem, but you handle it by either escaping it with a backslash
\(which needs to be doubled because JSON\\) or by using triple quotes for the string: