110 Commits

Author SHA1 Message Date
ChuckPa 63c96bd910 v1.15.0
1.  Fix long-standing DSM 6 start/stop problem
2.  Begin work on addressing edge ownership/perms problems on
     Synology.   May help others as well.
2026-03-02 23:23:02 -05:00
ChuckPa bfc440e1e1 Update Version + Release Notes
This release adds Full-Text Search index checking and repair.
These errors manifest as problems with Collections
2026-01-24 15:41:05 -05:00
Max Allison 8e998598fd feat: Add FTS4 index integrity check and rebuild functionality
Add detection and automatic repair for FTS4 (Full-Text Search) index
corruption, which can occur even when PRAGMA integrity_check passes.

New functions:
- CheckFTS(): Validates FTS4 index integrity using SQLite's integrity-check command
- DoFTSRebuild(): Rebuilds corrupted FTS4 indexes using SQLite's rebuild command

Enhanced existing commands:
- 'check' (option 3): Now includes FTS integrity checking
- 'reindex' (option 6): Now checks FTS indexes and rebuilds if corruption detected
- 'automatic' (option 2): Checks FTS after repair/reindex and automatically rebuilds if damaged

Refactored FTS table query into reusable FTS_TABLE_QUERY constant for maintainability.

Fixes: https://github.com/ChuckPa/DBRepair/issues/269
2026-01-23 07:49:31 -06:00
ChuckPa 0701adf77a Deflate - Minor adjustment per Plex engineering. 2025-12-04 11:56:48 -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
ChuckPa f2060a0ede Binhex: supervisord.conf update
.
2025-11-09 16:04:26 -05:00
ChuckPa aa76cbfefd Update & Correct documentation for v1.12 2025-10-21 17:26:46 -04:00
ChuckPa 247338278b Add Deflate command
Deflate
- Create new bandwidth_statistics table with proper schema.
- Transfer only valid data from existing bandwidth statistics into new.
- Drop old table.
- Vacuum into new database.
Merge Prune & Purge as one proper command
Update ASUSTOR documentation error.

Finalize Deflate integration & reporting.

Update Release Notes
2025-10-20 19:23:22 -04:00
ChuckPa 6d8bafbf99 HotIO - Path to Cache dir incorrect
Fixes path (working around silly symlink)
2025-07-31 20:18:21 -04:00
ChuckPa 24b746db1b Correct path issue with restart 2025-07-06 19:29:25 -04:00
ChuckPa 06c0f810dd Add support for FreeBSD (14+)
Thanks @cdf-eagles
2025-06-25 20:39:07 -04:00
Christopher Fernando 019fd197f8 Fixed bug for FreeBSD Plex service start/stop commands 2025-06-25 14:07:00 -05:00
Christopher Fernando 38cd4ded5c FreeBSD 14+ Compatibility Added.
See closed PR "Freebsd compat #224" for discussion.
Updated version.
Uses FreeBSD Ports (pkg command) to determine which plexmediaserver package is installed and sets paths.
2025-06-25 10:58:43 -05:00
ChuckPa 2264ee89be Correct missing variable initialization
Restart after update had missing default value.
2025-06-22 16:03:17 -04:00
ChuckPa ea78ea663e v1.11.05 - Cleanup menu 2025-06-05 13:30:24 -04:00
ChuckPa baf8398085 v1.11.04
1.  Add  Start/Stop support for Binhex containers
1.  Restart after update (optional)
2.  Remove DEFLATE (PMS 1.41.8)
2025-06-03 12:39:29 -04:00
ChuckPa cf54baa5c4 v1.11.03 -Add summary logfile messages
v1.11.03
1.  Add DEFLATE command to provide fast database cleanup while Plex engineering fixes the root problems.
2.  Handle Databases not on same storage as AppSuppDir
3.  Calculate SpaceNeeded based on $DBDIR
4.  Fix menu items
5.  Fix reporting of SpaceNeeded when unable to process.
6.  Add summary logging for DEFLATE actions in case disk full.
2025-05-30 23:19:34 -04:00
ChuckPa c5c1f7b683 v1.11.02
1.  Handle Databases not on same storage as AppSuppDir
2.  Calculate SpaceNeeded based on $DBDIR
3.  Fix menu items

4.  Fix reporting of SpaceNeeded when unable to process.

v1.11.02

Add DEFLATE command to provide fast database cleanup while Plex engineering fixes the root problems.
2025-05-30 19:22:34 -04:00
ChuckPa 98c5274d86 Update Repo name URL and reissue 2025-05-23 21:17:40 -04:00
ChuckPa 1c1ed5a8c1 Comply with Plex, inc. Trademark Policy
Comply with Plex,inc. Trademark Policy
2025-05-23 19:55:51 -04:00
ChuckPa 865da1cd3c Refactor version tags 2025-05-23 01:36:00 -04:00
ChuckPa 75481e41d3 Refactor version tags 2025-05-23 01:26:33 -04:00
ChuckPa 8aed201782 Correct version tag handling (remove junk)
Users would see multiple versions' tag info.  This is undesirable.
2025-05-22 19:38:05 -04:00
ChuckPa a34511a219 May 2025 cleanup
Minor DB Cleanup extras.
2025-05-20 20:19:14 -04:00
ChuckPa 2fcd006ed4 Set LC_ALL=C when null
MacOS fails regular expressions when null (as of Sequoia)
2025-03-18 21:44:11 -04:00
ChuckPa 48f7ff7f36 Change Update to use non-POSIX techniques
QNAP BusyBox 'grep' no longer supports POSIX.
Refactor to alternative method
2025-01-03 19:03:01 -05:00
ChuckPa 984b4ff861 Minor cleanup from 1.10 release 2025-01-02 15:13:16 -05:00
ChuckPa fe6c8d3ab6 Add Prune
Delete all images and temporary transcoder files/dirs in "/tmp".
2024-11-14 16:44:00 -05:00
ChuckPa f11d8de6be Fix: Forgot 'fi' on line 664 2024-09-04 20:02:20 -04:00
ChuckPa f4b987900a LSIO Start/Stop - updated path support
LSIO has multiple svc-plex pathnames.
This change adds support for /run/service/svc-plex.
2024-08-28 14:40:11 -04:00
Mark Honeychurch f869520ef8 Update DBRepair.sh, fix typo
Removed duplicated "database" in instructions
2024-06-23 21:46:38 +12:00
ChuckPa 91562060d1 v1.07.00
1.  Add MacOS start/stop functionality from menu.
2.  Cleanup & dead code removal
2024-06-14 13:20:37 -04:00
2bits b029ccebbb Support Mac Start Stop
Use osascript to Start and Stop PMS on Apple Mac.
2024-06-13 19:49:13 -07:00
ChuckPa 029020ebc5 v1.06.02 bug fix
Manual configuration mode error handling and reporting.
2024-05-11 02:37:37 -04:00
ChuckPa 32c30e6826 v1.06.01 - Support directory or full path with '--sqlite' option. 2024-05-10 18:04:12 -04:00
ChuckPa d0084c96fb Manual config support
See Release notes about --sqlite and --databases options.
2024-05-05 01:22:32 -04:00
ChuckPa 1a3228e648 Windows: Make path discovery better
DBRepair (Win)  now understands mixed mode (32 bit on 64 bit OS)
2024-05-05 00:51:52 -04:00
ChuckPa 852fdfc0d5 Manual mode - Initial commit 2024-05-01 02:02:32 -04:00
ChuckPa d8d2283c01 HOTIO path locator fixes
Contributed path changes for HOTIO
Version bump
2024-03-26 14:42:33 -04:00
causefx 4d880bf788 fix: add new path for update hotio image 2024-03-11 16:18:55 -07:00
ChuckPa c8162a487f Change Transcoder Cache dir to variable.
Structure differences on MacOS.
Update documentation
2024-03-08 00:35:02 -05:00
ChuckPa 26a8bf3e49 Add Kubernetes (and TrueNAS) container support 2024-02-09 01:54:49 -05:00
ChuckPa d96f091823 v1.04.00 - Add SNAP support
Adds support for SNAP packaging  (/snap, /var/snap)
2024-01-30 19:57:29 -05:00
ChuckPa 6ebb342973 Correct case where PAGESIZE != 2^n where n={10,11,12,13,14,15,16}
1.  Correct PAGESIZE allowed values
2.  Improved performance of prune
3.  Cosmetic output cleanup
4.  Improve error messaging and handling
5.  Update documentation
2024-01-17 21:15:56 -05:00
ChuckPa 2a8a8e242b Add 'purge' & Environment variable support.
PlexDBRepair - release v01.03.00

1.  Purge command  ('piurge') - Remove old image files from Transcode cache
2.  Environment variables support to tailor operation
    - DBREPAIR_CACHEAGE -  Set max age of files to retain
    - DBREPAIR_PAGESIZE    -  Set Plex SQLite database page_size
2024-01-17 00:33:07 -05:00
ChuckPa 8863beeab2 Update Release Notes & README.md
Logging - Add missing logging record when making active
One logging record was missing.

Add DSM 7 Task Scheduler usage documentation
2024-01-12 16:47:57 -05:00
ChuckPa 38749aef78 New: Add menu option to ignore/honor duplicates / constraint errors
update code.
bump to version 1.02.00 (new feature)
update release notes.
update readme
2023-11-26 00:43:39 -05:00
ChuckPa fa760e3ddf Update version to 1.01.04 after patch
update version to 1.01.04 after patch
2023-11-25 19:39:05 -05:00
ChuckPa 80fb3a751c Fix unable to repair DB when UNIQUE constraint errors occur
Not all DBs were repairable.  This fix addresses UNIQUE constraint failures.
2023-11-25 19:36:57 -05:00
ChuckPa fcf132f9e1 Fix unable to repair DB when UNIQUE constraint errors occur
Not all DBs were repairable.  This fix addresses UNIQUE constraint failures.
2023-11-25 19:25:21 -05:00