mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2025-12-05 17:02:32 -05:00
Compare commits
7 Commits
abc552fb12
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6bf75db6d | ||
|
|
0701adf77a | ||
|
|
15b2dbabb3 | ||
|
|
cbd02cc6b6 | ||
|
|
43d636b371 | ||
|
|
85c88a59f3 | ||
|
|
f2060a0ede |
20
DBRepair.sh
20
DBRepair.sh
@@ -2,12 +2,12 @@
|
||||
#########################################################################
|
||||
# Database Repair Utility for Plex Media Server. #
|
||||
# Maintainer: ChuckPa #
|
||||
# Version: v1.12.01 #
|
||||
# Date: 21-Oct-2025 #
|
||||
# Version: v1.13.02 #
|
||||
# Date: 04-Dec-2025 #
|
||||
#########################################################################
|
||||
|
||||
# Version for display purposes
|
||||
Version="v1.12.01"
|
||||
Version="v1.13.02"
|
||||
|
||||
# Have the databases passed integrity checks
|
||||
CheckedDB=0
|
||||
@@ -779,10 +779,15 @@ HostConfig() {
|
||||
LOGFILE="$DBDIR/DBRepair.log"
|
||||
LOG_TOOL="logger"
|
||||
|
||||
if grep rpcinterface /etc/supervisor.conf > /dev/null; then
|
||||
if [ -e /etc/supervisor.conf ] && grep rpcinterface /etc/supervisor.conf > /dev/null; then
|
||||
HaveStartStop=1
|
||||
StartCommand="supervisorctl start plexmediaserver"
|
||||
StopCommand="supervisorctl stop plexmediaserver"
|
||||
|
||||
elif [ -e /etc/supervisord.conf ] && grep rpcinterface /etc/supervisord.conf > /dev/null; then
|
||||
HaveStartStop=1
|
||||
StartCommand="supervisorctl start start-script"
|
||||
StopCommand="supervisorctl stop start-script"
|
||||
fi
|
||||
|
||||
HostType="BINHEX"
|
||||
@@ -1457,9 +1462,12 @@ DoDeflate() {
|
||||
-- Exclusive DB access
|
||||
BEGIN IMMEDIATE;
|
||||
|
||||
-- Remove old temp table if exists
|
||||
DROP TABLE IF EXISTS temp_bandwidth;
|
||||
|
||||
-- Create new table
|
||||
CREATE TABLE temp_bandwidth (
|
||||
id INTEGER PRIMARY KEY,
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
account_id INTEGER,
|
||||
device_id INTEGER,
|
||||
timespan INTEGER,
|
||||
@@ -1886,7 +1894,7 @@ DoUpdateTimestamp() {
|
||||
GetLatestRelease() {
|
||||
Response=$(curl -sL "https://api.github.com/repos/ChuckPa/DBRepair/tags")
|
||||
if [ $? -eq 0 ]; then
|
||||
LatestVersion="$(echo "$Response" | grep name | awk -F: '{print $2}' | sort -r | head -1 | tr -d \" | tr -d ' ' | tr -d ',')"
|
||||
LatestVersion="$(echo "$Response" | grep name | awk -F: '{print $2}' | sort -rn | head -1 | tr -d \" | tr -d ' ' | tr -d ',')"
|
||||
else
|
||||
LatestVersion="$Version"
|
||||
fi
|
||||
|
||||
@@ -104,6 +104,14 @@ Enter command # -or- command name (4 char min) :
|
||||
```
|
||||
# Installation
|
||||
|
||||
### Downloading
|
||||
Download DBRepair.sh (if you want just the script)
|
||||
# This overwrites any existing version. Remove "-O DBRepair.sh" to not overwrite.
|
||||
```
|
||||
wget -O DBRepair.sh https://github.com/ChuckPa/PlexDBRepair/releases/latest/download/DBRepair.sh
|
||||
```
|
||||
### Moving the downloaded DBRepair.sh
|
||||
|
||||
Where to place the utility varies from host to host.
|
||||
Please use this table as a reference.
|
||||
|
||||
|
||||
17
ReleaseNotes
17
ReleaseNotes
@@ -8,6 +8,23 @@
|
||||

|
||||
|
||||
# Release Info:
|
||||
v1.13.02
|
||||
|
||||
1. Autoincrement - Adjust statistics_bandwidth table per Plex engineering suggestion.
|
||||
|
||||
v1.13.01
|
||||
|
||||
1. Tag sort order - Github tags are not guaranteed to be numeric or in most-recent order.
|
||||
This update sorts version tags numerically and in reverse order to accommodate github shortcoming.
|
||||
|
||||
v1.13.00
|
||||
|
||||
1. Binhex containers - Add support for updated 'supervisord' start/stop control.
|
||||
Maintain support for legacy 'supervisor' start/stop control.
|
||||
|
||||
This will be removed in the next release
|
||||
Update your container before updating DBRepair.
|
||||
|
||||
v1.12.00
|
||||
|
||||
1. Deflate capability - Deflate a bloated PMS main database and retain bandwidth statistics.
|
||||
|
||||
Reference in New Issue
Block a user