Team-Creative-Name / Plexi

A Discord bot that integrates with Ombi
GNU Affero General Public License v3.0
1 stars 1 forks source link

Allow users to approve media requests #3

Open collectioncard opened 4 years ago

collectioncard commented 4 years ago

Currently, admins need to log into ombi to approve media requests. Plexi should be able to approve media using the following commands: [PREFIX]approve tv ID_NUMBER [PREFIX]approve movie ID_NUMBER

collectioncard commented 4 years ago

Will not be added until after version 1.0 is released due to some rather annoying issues with ombi's API.

Ombi requires us to pass it the internal request id in order to approve a request. We can get this information, but it will require us to either:

  1. Search through the entire list of requested movies for one that matches the external media database ID
  2. approve media by name - something that can fail if the show has weird characters or something

Both of those will require us to make a get and a post request to the ombi API which means extra time must be taken in order to complete commands. Ombi will return every request, even ones that have been fulfilled, in the resulting JSON of the first option so we have a lot of data to sort and search through.

The best solution I can think of right now is a paginator of all requested and unapproved media (each type would be its own menu) that the user can run through and approve. Preferably, this paginator would be presented in chronological order.