A way to repair content table
A button or a task that runs when watcharr starts to look for content with missing fields, then re-requesting the information from themoviedb to 'repair' the tables data.
Any way to allow us to get missing data needs to be added, mostly because if we add a field to the db later on, that show will currently never get the new field data added automatically.
Maybe this should not only look for missing fields, but instead update all data for all content, then we can fetch updated pieces of data too.
Should Add
- [ ] New easily reusable funcs for refreshing data in our cache (one func for the global task of refreshing all content, individual funcs for refreshing shows, movies or games via their respective ids).
- [ ] Create new daily(?) task that runs data refresh on all data.
- [ ] Purge any existing content cache(?), maybe only on content that actually had an update. If cache isn't purged straight away, the old data would probs just show until it expires on its own.
- [ ] Create button in admin panel for manually triggering refresh of all content (should be able to call same func as the daily task).
- [ ] Reschedule the daily task to the next day as same usual time.
- [ ] (admin only too?) Three dots "more actions" button on content, in the content pages, for manually refreshing just that piece of content.
EDIT: this tasks thing exists already now.
A new Tasks page for admins might be a good addition along with this.
Each task would be a cron job with a customizable schedule.
Would only have this task for now (the db token cleanup could be added into a general cleanup task).