6 Commits

Author SHA1 Message Date
Chuck
b62b606dc7 Update README.md
Improve user documentation
2025-12-06 20:04:27 -05:00
Chuck
d6bf75db6d Merge pull request #261 from ChuckPa/chuckpa/autoincrement
Deflate - Minor adjustment per Plex engineering.
2025-12-04 12:06:08 -05:00
ChuckPa
0701adf77a Deflate - Minor adjustment per Plex engineering. 2025-12-04 11:56:48 -05:00
Chuck
15b2dbabb3 Update README.md 2025-12-03 16:19:35 -05:00
Chuck
cbd02cc6b6 Merge pull request #259 from ChuckPa/chuckpa/fix-tag-sorting
Fix github tag sorting.   Ensure tags are both Numeric and Reverse sorted so newest version number listed first.
2025-11-14 19:42:45 -05:00
ChuckPa
43d636b371 Add Numeric sorting to tag retrieval
Ensures highest version number is first listed
2025-11-14 19:40:17 -05:00
3 changed files with 37 additions and 5 deletions

View File

@@ -2,12 +2,12 @@
######################################################################### #########################################################################
# Database Repair Utility for Plex Media Server. # # Database Repair Utility for Plex Media Server. #
# Maintainer: ChuckPa # # Maintainer: ChuckPa #
# Version: v1.13.00 # # Version: v1.13.02 #
# Date: 09-Nov-2025 # # Date: 04-Dec-2025 #
######################################################################### #########################################################################
# Version for display purposes # Version for display purposes
Version="v1.13.00" Version="v1.13.02"
# Have the databases passed integrity checks # Have the databases passed integrity checks
CheckedDB=0 CheckedDB=0
@@ -1462,9 +1462,12 @@ DoDeflate() {
-- Exclusive DB access -- Exclusive DB access
BEGIN IMMEDIATE; BEGIN IMMEDIATE;
-- Remove old temp table if exists
DROP TABLE IF EXISTS temp_bandwidth;
-- Create new table -- Create new table
CREATE TABLE temp_bandwidth ( CREATE TABLE temp_bandwidth (
id INTEGER PRIMARY KEY, id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
account_id INTEGER, account_id INTEGER,
device_id INTEGER, device_id INTEGER,
timespan INTEGER, timespan INTEGER,
@@ -1891,7 +1894,7 @@ DoUpdateTimestamp() {
GetLatestRelease() { GetLatestRelease() {
Response=$(curl -sL "https://api.github.com/repos/ChuckPa/DBRepair/tags") Response=$(curl -sL "https://api.github.com/repos/ChuckPa/DBRepair/tags")
if [ $? -eq 0 ]; then 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 else
LatestVersion="$Version" LatestVersion="$Version"
fi fi

View File

@@ -104,6 +104,14 @@ Enter command # -or- command name (4 char min) :
``` ```
# Installation # 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. Where to place the utility varies from host to host.
Please use this table as a reference. Please use this table as a reference.
@@ -135,6 +143,18 @@ Enter command # -or- command name (4 char min) :
Additional hosts and docker images can easily be supported in almost all cases with appropriate path Additional hosts and docker images can easily be supported in almost all cases with appropriate path
information. Please contact me as needed. information. Please contact me as needed.
### Gettting a usable command line session
1. Accessing a NAS
Open a terminal/command line window on your computer.
type: ssh admin-username@IP.addr.of.NAS
2. Linux
Open a terminal session and elevate to the root (sudo) user
3. Windows -- for Windows PMS hosts
Open a Command window
Follow the instructions for the Windows version of DBRepair
### General installation and usage instructions ### General installation and usage instructions

View File

@@ -8,6 +8,15 @@
![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.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 v1.13.00
1. Binhex containers - Add support for updated 'supervisord' start/stop control. 1. Binhex containers - Add support for updated 'supervisord' start/stop control.