ChuckPa / PlexDBRepair

Database repair utility for Plex Media Server databases
Other
881 stars 43 forks source link

[Windows] Expand PMS install location detection #146

Closed danrahn closed 6 months ago

danrahn commented 6 months ago

There are a few scenarios where the current logic to find the PMS install directory will fail:

This change attempts to address those issues by doing the following:

Validation:

For custom install paths, it works as expected as long as it's properly set, in HKCU or HKLM, but as mentioned above, it seems like that might not always be the case.

Fixes: #143

ChuckPa commented 6 months ago

Outstanding. Thank you.

Might you feel like tackling another bit ?

The Plex PhotoTranscoder cache loves to collect a lot of files. PMS is supposed to clean them up after 30 days but often doesn't due to Scheduled Tasks limitations (allotted time)

I have added this capability (Prune) to DBRepair.sh.

Would you mind taking a look at it and consider adding an issue in this Repo (Enhancement Request) with PR which adds the cleanup I added?

danrahn commented 6 months ago

Outstanding. Thank you.

Might you feel like tackling another bit ?

The Plex PhotoTranscoder cache loves to collect a lot of files. PMS is supposed to clean them up after 30 days but often doesn't due to Scheduled Tasks limitations (allotted time)

I have added this capability (Prune) to DBRepair.sh.

Would you mind taking a look at it and consider adding an issue in this Repo (Enhancement Request) with PR which adds the cleanup I added?

I can take a look! Batch scripts definitely aren't my forte, but I'll see what I can come up with.

ChuckPa commented 6 months ago

How's your Powershell?

Another user is helping with prune as well as configuration detection.

This is starting to feel VERY much like we need to move to a proper collaborative effort for Windows just like exists for Linux?

danrahn commented 6 months ago

How's your Powershell?

Shaky at best. Google has been my friend for a lot of the changes I've made here, but I'm comfortable enough with Windows and Plex that things have been relatively smooth so far.

Another user is helping with prune as well as configuration detection.

This is starting to feel VERY much like we need to move to a proper collaborative effort for Windows just like exists for Linux?

Yeah, it'd be great if there was an effort to get the Windows script in-line with the Linux one. If the other user working on this is actually familiar with Powershell, I'd probably defer to them, given my lack of experience with PS mentioned above 😅