Skip to content

Feature Request - Add Custom Label #25

@paytah232

Description

@paytah232

For usage with Plex sharing, I'd like to limit the users who have access to 4k media by adding a label to 4k media, which is then put on the block list in Plex. For my particular purpose, I also don't specifically want to have this grab anything from TMDB, just add the 4k label.

Expected workflow would be:

1. Scan Plex library
2. If resolution = 4k (2160p), add custom label '4k'

In this particular case, I would also like the ability to opt out of TMDB use. I would suggest either making it detect something fixed, or adding an enviroment variable.

NO_TMDB = true
or
TMDB_READ_ACCESS_TOKEN=false

Ideally, there would be a way to filter too, so I could run multiple instances of this app, one to handle standard labelling and use, and one for my specific 4k label.

So in essence, it could work like:
Instance 1 (4k only):
Prefilter search list to anything that is 4k -> act

Instance 2 (<4k only):
Prefilter search list to anything that is <4k -> act

If there was no ability to filter out as above, I would like the filtering to be able to work on the addition of the custom tag; example, if it was set by an environment var, then something like:

CUSTOM_LABEL_1_ENABLE=true
CUSTOM_LABEL_1_LABEL=4k
CUSTOM_LABEL_1_FILTER=resolution:4k,resolution:2160p,resolution:8k

I used a CSV list as an example, but I guess this would need to depend on what data you can get from a movie/tv show about the resolution, and what format it is in.

As an example, I think maintainerr does a really grab job of enabling and handling filters, so you could copy how it does filters too.

Happy to provide feedback or clarification if needed, thanks for a cool tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions