-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add Multiple Tag Searches Connected via Logical OR #11
Comments
The current workaround is to have multiple |
I suggest a file configuration like "downloadme.txt" but instead each line is a logical AND connection,
So the program reads As for more complicated examples maybe a json approach, you might look at elasticsearch query dsl, but I personally think it would be overkill and go beyond nhentai's own search ability. I'd contribute if I knew a bit more about Rust, sorry. Love this project <3 |
How do you suggest should this be compatible with docker compose? |
There should be no change to the docker compose. Add a file in config,
If you want, you can also add an environment variable So you can do something like jobs_filepath = os.getenv("JOBS_FILEPATH", "./config/jobs.txt")
if os.path.exists(jobs_filepath):
with open(jobs_filepath, "r") as reader:
nh_tags_list = reader.readlines()
for nh_tags in nh_tags_list:
try:
process_nh_tags(nh_tags) # since this logic already exists.
except:
... Then there are these archival strategies (determine priority, what takes precedence etc):
|
This solution seems pretty janky. I'm not going to add another archival strategy unless I really have to. Acceptable solutions that I can think of currently are
I consider using a 2 dimensional array in YAML user-friendly enough because it natively supports nested array structures with minimal syntax. Problem with the YAML solution I currently see is that docker compose does not natively support environmental variables of type array. Changing The tradeoff could be worth though considering setting |
Not sure I get what you're struggling with. The yaml configuration file you're considering isn't related to docker, it's how your app reads the file. As for environment variables, they don't have a 'type', they're just strings. Obviously you can write them as if they represent complex data types such as arrays, but it's not like they inherently contain that structure. |
Add support for multiple tag searches connected via logical OR in a user friendly way. This could be done by re-defining
NHENTAI_TAGS
to aVec<Vec<String>>
, but I don't find it user friendly enough to use. It would also destroy any possibility to setNHENTAI_TAGS
viadocker-compose.yaml
.To properly support this and even more complex searches down the line, I'm currently thinking that implementing a graphical user interface might be necessary. I like to avoid that for several reasons: I don't have the time, I don't have the experience, and I'm worried about multi platform support.
The text was updated successfully, but these errors were encountered: