mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-02-04 03:16:52 -06:00
[DOCUMENT] The format of blacklist, blacklist_permissive and whitelist #96
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @janusn on GitHub.
Before submitting a bug report, I have:
What is the behavior?
I must start by thanks a ton for your effort. I raised a feature request on the forums of sonarr for these features. I don't even know whether it is considered.
I am here to report a confusion on the document:
The document said the value of
SONARR/RADARR/LIDARR__BLOCK__PATHmust be JSON compatible and the example are/blocklist.jsonandhttps://example.com/blocklist.jsonHowever, the actual content of an example file blacklist is not a json file at all. I am confused.
Thank you very much.
Which operating system do you use?
Linux
What type of deployment do you use?
Docker container
Relevant log output
Anything else?
No response
@Valtora commented on GitHub:
I've included escaping backslashes on Windows 11 and am using the recommended blocklist.txt file but the logs are still showing that the blocklist is not found.
[2025-06-06 23:00:20.368 ERR] [ContentBlocker] failed to load blocklists
[2025-06-06 23:00:20.369 ERR] [ContentBlocker] ContentBlocker failed
System.ArgumentException: blocklist not found | C:\Users\MSAdmin\Documents\cleanuperr\cleanuperr\blocklist.txt
Am I doing something wrong?
@janusn commented on GitHub:
I see. Escaping backslashes.
@Flaminel commented on GitHub:
I mean someone using Windows put something like this at some point and the path is not json compatible:
For it to be valid, the
\character should be escaped like this:The accepted values for patterns inside the blocklist file are documented here:
https://flmorg.github.io/cleanuperr/docs/configuration/arrs/sonarr?SONARR__BLOCK__PATH
@Flaminel commented on GitHub:
There's a bit of a confusion here about what needs to be JSON compatible. The value of the variable must be JSON compatible, so basically the path itself (e.g.
/path/to/file) must be that way. The actual file should look like the one you linked, with a pattern on every line.@janusn commented on GitHub:
I see. You mean the mean the values can be interpreted as strings in json.
I wonder what does not qualify then. Using characters other than ‘*’ and wildcard?
@Flaminel commented on GitHub:
@Valtora Is this the exact path to the blocklist though? Seems like you have
cleanuperrtwice in there, but is it intentional?C:\Users\MSAdmin\Documents\cleanuperr\cleanuperr\blocklist.txt@Flaminel commented on GitHub:
@Valtora I'm a bit confused. You are on Windows but using Docker or is it the exe file?
@Flaminel commented on GitHub:
@Valtora Unfortunately that's not how Docker works. The container does not have access to your host's file system, which makes sense why it can't find the file. You need to mount the file inside the container to be able to use it.
You probably need to add the following to your yaml file:
Don't take my word on how the exact path should look like on Windows, but I think that's it.
Reference to Docker volumes docs:
https://docs.docker.com/engine/storage/volumes/
@Valtora commented on GitHub:
@Flaminel - Apologies, I'm on Windows 11 using the Docker desktop app and using docker compose up (pointed at a .yaml file) to start the container. I'm assuming this is supported, though not ideal perhaps?
I have attached a redacted .yaml (in txt format as .yaml is not supported for upload) file for you to view in case the mistake is there.
I'm using qBittorrent, Sonarr, and Radarr only.
cleanuperr-redacted.txt
@Valtora commented on GitHub:
@Flaminel - Yes, this is intentional for now but I can change it if you think that is the problem.
EDIT: Just tried it again without the nested cleanuperr dir and it still couldn't find the blocklist. This was the new directory in the .yaml file:
C:\\Users\\MSAdmin\\Documents\\blocklist.txt
For clarity, I'm not writing with quote marks, just as-is above.
@Valtora commented on GitHub:
@Flaminel - Thank you, that makes sense. Apologies for using up your time on this and not realising improper use in the first place. I'm new to Docker so I appreciate the pointer!
@Flaminel commented on GitHub:
@Valtora Don't worry about it, I'm happy to help!
I'm going to close this issue. Feel free to open a new one if needed or join the Discord server to get help faster. I'll assist as much as I can.