How about letting us pick a user to remove the watch history for? Then we can manually delete the stale entries. The command could require typing the username out exactly.
Users in the PMS database is identified with an ID, and not their real name
To get the user behind the ID, only option is to query either the local database, that @ChuckPa tool has access to, or query plex.tv, that req. a user token, and the tool do not have access to that, only the server token
@dane22 yep correct, the usernames + IDs are in the Plex DB that DBRepair is using, but the emails tied to those require usage of Plex API credentials - which are stored in preferences.xml
It should be possible for most people to use any kind of scrub feature based on usernames alone imo, but it shouldn’t be difficult to pull the Plex API from preferences.xml or is that crossing some kind of line?
I was beginning to worry as it wasn’t making sense and neither Dane22 nor I could reproduce it.
To let you and everyone know,
Tomorrow I will be hot-fixing and bumping the version of DBRepair to .09
The OUTSTANDING feedback I got today, coupled with some real-world issues I never thought to look for, are going to get verified and then the code released.
I have analyzed what was sent and figured out what I need to add to DBRepair which is ready for final test and release. (it’s a weird, wild, and VERY IMPORTANT edge case to fix. DBRepair.sh would never solve it)
Allowing DBRepair to stop/start PMS would be ideal
A pet peeve of Plex’s Scheduled Tasks for optimising database/bundles/cache, you can never time it and it will often interrupt streams (large DB issues, maybe)
I plan on having DBRepair take over that job - Every X days, when Plex streams are 0, launch DBRepair