excludarr / excludarr

MIT License
10 stars 2 forks source link

convert to web service #18

Open barsa2000 opened 1 month ago

barsa2000 commented 1 month ago

A web service would make managing movies/series a lot easier for a lot of people, it would also make managing the config file more error-proof given that it would be managed by the webserver and we could implement new functionalities, like filtering lists before they reach Radarr/Sonarr.

I also want to keep it runnable just by using a config file like it is now to maintain as much backwards compatibility as we can without limiting the progress of the project.

please share any thoughts

scott-es commented 1 month ago

Just to make sure I'm following, are you referring to adding an http API and a web app? Big change but would be better.

scott-es commented 1 month ago

I kinda wish there were plugins into sonarr and radarr we could build this functionality into, so it lives inside those apps, respectively.

barsa2000 commented 1 month ago

I started converting the project to django, my idea is pretty similar to what the original author was trying to achieve with his v2.

The path I had in mind is:

  1. convert it to Django with a basic ui to view/change settings in the config file and see logs
  2. Add the ability to handle multiple sonarr/radarr instances
  3. Make a good UI (someone will have to step in, I'm not a FE dev and can't make good UIs lol)
  4. Add the ability to add a list to excludarr that will filter out unwanted entries and serve the list to radarr/sonarr like it was the original list (this will need various integrations to support all/some of the services supported by sonarr/radarr

All this should also be while maintaining retro compatibility as much as we can with the current config file we have (maybe by adding a --legacy flag).

There are some interesting suggestions in the issues of the original project (like the filtering before serving part) that I'd like to work on, I just need some time as I've been pretty busy the last couple of weeks. I'll make issues for each enhancement so we will be able to discuss each one when we'll reach that point.

barsa2000 commented 1 month ago

I kinda wish there were plugins into sonarr and radarr we could build this functionality into, so it lives inside those apps, respectively.

Yea totally, this stuff would be so much easier to do that way

scott-es commented 1 month ago

Could add a version: 2 for new yaml schema so code can differentiate from original schema, and if we ever need a v3 we already have a pattern to support that :)

barsa2000 commented 1 month ago

Could add a version: 2 for new yaml schema so code can differentiate from original schema, and if we ever need a v3 we already have a pattern to support that :)

Yea, I like that solution