Closed alexdelprete closed 8 months ago
did you happen to check http://zurgip:port on a browser and see if that new directory contains anything?
did you happen to check http://zurgip:port on a browser and see if that new directory contains anything?
Yes, it was the first thing I did, and it's empty.
Maybe it's the regexp used, it doesn't match maybe? In the log I don't see anything to debug the problem. If you could add some debugging output it would be helpful.
I used regexp syntax provided in the docs examples, even though they're not standard regexp, I tried them in regex101.com and it says they're not valid. Could that be the problem?
ah right yes the config is wrong
any_file_inside_regex
instead of any_files_inside_regex
you can also remove the or
condition because it's or
on the first level anw
adult:
group: media
group_order: 15
filters:
- any_file_inside_regex: /xxx/i
- any_file_inside_regex: /sex/i
- any_file_inside_regex: /adult/i
any_file_inside_regex
instead ofany_files_inside_regex
ok, now something is finally working: with /xxx/i
it moved in adult/
all files with xxx
(lowercase) but not the ones with XXX
(uppercase) or mixed-case (xXx
).
Are you sure about that regexp nonstandard syntax? What standard/library do you use for regexp parsing?
try it with /mkv/i
or /mkv/
or /MKV/
to test it
it works fine for me
Solved it with: regex: /xxx/i
. But then I found out that contains: xxx
is even simpler, and it's case-insensitive. :)
Question: when you update the config.yml file, does it refresh automatically or I have to restart the container every time I update it? Would be cool if it was dynamic.
I hope we have some more verbose logging to troubleshoot things in the future, but you've made an amazing work with zurg, thank you very much also for the great support.
Now I have to understand how/if it works with rdt-client.
you have to restart. docker doesn't play well with signaling mounted file changes to the container and I don't want to continuously read the file and check for changes because that stresses up drives.
sure, what was missing on the logs for you that will help?
I have Traefik and other services (Homepage for example) that are docker based and react dynamically to config file changes. I read it's not based on polling but a notification service...but I didn't look into it too much, if you want I can take a deeper look at it.
what was missing on the logs for you that will help?
for example when it processes the torrents, how it applies the filters, etc. when the regex didn't work I had no clue if it was doing something at all, if the filters were being applied, if the filters were wrong, etc.
ah cool, if you can send the image here that you're specifically looking, i'll take a look
the filter evaluation im planning on doing differently for debugging. i'll share more when i start developing it.
Traefik (dynamic configuration file automatic reload): https://github.com/traefik/traefik Homepage (any config file change gets automatically reloaded): https://github.com/gethomepage/homepage
the filter evaluation im planning on doing differently for debugging. i'll share more when i start developing it.
ok, great.
Expected Behavior I added an "Adult" directory, and applied a couple of filters to match the filenames, I restarted zurg to trigger the rescan and let it update the directories, but nothing happens after the initial scan.
Actual Behavior Nothing happens. After the initial scan, where everything is under the same directory, no matter what I do there's no change to the dir structure.
Detailed Steps I edited config.yaml adding the new directory and the relevant filter
Operating System Linux - Debian 12
Environment Setup Docker with compose:
Logs
Rclone Configuration
Zurg Configuration