7 Commits
Author SHA1 Message Date
ChuckandGitHub 82f5c3f87c Merge pull request #288 - Fix version typo.
Fix typo in Version string
2026-06-27 12:44:14 -04:00
Chuck 2d0532dcd3 Fix typo in Version string
v1.16.00 version string typo. Fixed
2026-06-27 12:42:18 -04:00
ChuckandGitHub bbb03f0c75 Update README.md 2026-06-23 17:33:26 -04:00
ChuckandGitHub 32a949d797 Merge pull request #287 from ChuckPa/chuckpa/MacOS-application-dir
v1.16.00

MacOS - Add support for either /Applications or $HOME/Applications package locations
2026-06-23 15:50:40 -04:00
Chuck 1c4a63178b v 1.16.00
Add mutli-location support for PlexMediaServer.app on MacOS

Add Buttons for Coffee donations.
2026-06-23 15:45:24 -04:00
ChuckandGitHub 3fb3453621 Update FUNDING.yml 2026-06-23 14:27:47 -04:00
ChuckandGitHub 93909ec504 Create FUNDING.yml 2026-06-23 14:26:32 -04:00
4 changed files with 52 additions and 31 deletions
+2
View File
@@ -0,0 +1,2 @@
# If DBRepair has helped you, you're welcome to make a one-time donation.
github: ChuckPa
+39 -28
View File
@@ -2,8 +2,8 @@
######################################################################### #########################################################################
# Database Repair Utility for Plex Media Server. # # Database Repair Utility for Plex Media Server. #
# Maintainer: ChuckPa # # Maintainer: ChuckPa #
# Version: v1.15.00 # # Version: v1.16.00 #
# Date: 02-Mar-2026 # # Date: 23-Jun-2026 #
######################################################################### #########################################################################
# Version for display purposes # Version for display purposes
@@ -701,38 +701,49 @@ HostConfig() {
HostType="ASUSTOR" HostType="ASUSTOR"
return 0 return 0
# Apple Mac # Apple Mac
elif [ -d "/Applications/Plex Media Server.app" ] && \ elif [ "$(uname)" = "Darwin" ] && [ -d "$HOME/Library/Application Support/Plex Media Server" ]; then
[ -d "$HOME/Library/Application Support/Plex Media Server" ]; then
# Where is the software # Determine where the application bundle is installed
PLEX_SQLITE="/Applications/Plex Media Server.app/Contents/MacOS/Plex SQLite" if [ -d "/Applications/Plex Media Server.app" ]; then
AppSuppDir="$HOME/Library/Application Support" PkgDir="/Applications/Plex Media Server.app"
DBDIR="$AppSuppDir/Plex Media Server/Plug-in Support/Databases" elif [ -d "$HOME/Applications/Plex Media Server.app" ]; then
CACHEDIR="$HOME/Library/Caches/PlexMediaServer/PhotoTranscoder" PkgDir="$HOME/Applications/Plex Media Server.app"
LOGFILE="$DBDIR/DBRepair.log" else
LOG_TOOL="logger" # It is a Mac, but the .app bundle cannot be found
TMPDIR="/tmp" PkgDir=""
SYSTMP="$TMPDIR" fi
# MacOS uses pgrep and uses different stat options # Only proceed if we successfully located PkgDir
PIDOF="pgrep" if [ -n "$PkgDir" ]; then
STATFMT="-f" # Where is the software
STATBYTES="%z" PLEX_SQLITE="${PkgDir}/Contents/MacOS/Plex SQLite"
STATPERMS="%A" AppSuppDir="$HOME/Library/Application Support"
DBDIR="$AppSuppDir/Plex Media Server/Plug-in Support/Databases"
CACHEDIR="$HOME/Library/Caches/PlexMediaServer/PhotoTranscoder"
LOGFILE="$DBDIR/DBRepair.log"
LOG_TOOL="logger"
TMPDIR="/tmp"
SYSTMP="$TMPDIR"
# Root not required on MacOS. PMS runs as username. # MacOS uses pgrep and uses different stat options
RootRequired=0 PIDOF="pgrep"
STATFMT="-f"
STATBYTES="%z"
STATPERMS="%A"
# You can set haptic to 0 for silence. # Root not required on MacOS. PMS runs as username.
HaveStartStop=1 RootRequired=0
StartCommand=startMacPMS
StopCommand=stopMacPMS
HapticOkay=1
HostType="Mac" # You can set haptic to 0 for silence.
return 0 HaveStartStop=1
StartCommand=startMacPMS
StopCommand=stopMacPMS
HapticOkay=1
HostType="Mac"
return 0
fi
# FreeBSD 14+ # FreeBSD 14+
elif [ -e /etc/os-release ] && [ "$(cat /etc/os-release | grep FreeBSD)" != "" ]; then elif [ -e /etc/os-release ] && [ "$(cat /etc/os-release | grep FreeBSD)" != "" ]; then
+4 -3
View File
@@ -6,6 +6,7 @@
[![Download total](https://img.shields.io/github/downloads/ChuckPa/DBRepair/total.svg)](https://github.com/ChuckPa/DBRepair/releases) [![Download total](https://img.shields.io/github/downloads/ChuckPa/DBRepair/total.svg)](https://github.com/ChuckPa/DBRepair/releases)
[![master](https://img.shields.io/badge/master-stable-green.svg?maxAge=2592000)]('') [![master](https://img.shields.io/badge/master-stable-green.svg?maxAge=2592000)]('')
![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg) ![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)
[![Sponsor ChuckPa](https://img.shields.io/badge/Sponsor-%E2%9D%A4-ea4aaa.svg?style=flat&logo=github)](https://github.com/sponsors/ChuckPa)
DBRepair is run from a command line (terminal or ssh/putty session) which has sufficient privilege to read/write the databases (minimum). DBRepair is run from a command line (terminal or ssh/putty session) which has sufficient privilege to read/write the databases (minimum).
@@ -14,12 +15,12 @@ If sufficient privleges exist (root), and supported by the environment, the opti
## Situations and errors commonly seen include: ## Situations and errors commonly seen include:
1. Searching is sluggish 1. Searching is sluggish or completely broken
2. Database is malformed / damaged / corrupted 2. Database is malformed / damaged / corrupted
3. Database has bloated from media addition or changes 3. Database has bloated from media addition or changes
4. Damaged indexes damaged 4. Damaged indexes
5. Importing data from other databases (watch history) 5. Importing data from other databases (watch history)
6. Cleaning up operational temp files which PMS has forgotten to clean up 6. Cleaning up operational temp files which PMS has forgotten
## Functions provided ## Functions provided
+7
View File
@@ -7,7 +7,14 @@
[![master](https://img.shields.io/badge/master-stable-green.svg?maxAge=2592000)]('') [![master](https://img.shields.io/badge/master-stable-green.svg?maxAge=2592000)]('')
![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg) ![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)
# Release Info: # Release Info:
v1.16.00
1. MacOS App Dir - Older MacOS systems use /Applications. Newer MacOS systems use $HOME/Applications.
DBRepair now detects this and supports both locations.
v1.15.00 v1.15.00
1. DSM 6 Start/Stop - Change how DSM 6 start/stop feature implemented 1. DSM 6 Start/Stop - Change how DSM 6 start/stop feature implemented