Commit Graph

195 Commits

Author SHA1 Message Date
ChuckPa 579004cfe0 Add support for cgroup V2 2022-12-16 13:30:07 -05:00
Chuck 6b253b26fd Merge pull request #22 from ChuckPa/chuckpa/improve-restore-logic
Improve database backup selection logic, Add BINHEX support
2022-12-15 01:52:30 -05:00
ChuckPa de8bb48901 Improve database backup selection logic, Add BINHEX support
Added informative output and correct issue selecting final available backup.
Added binhex (Arch) docker support
Updated READMEmd

Add support for all Docker variants

Change detection to use cgroup

Add BINHEX support,  Update README.md
2022-12-14 01:43:46 -05:00
Chuck 8d2e287ecd Update README.md 2022-11-28 23:32:52 -05:00
Chuck cd9fe591a3 Merge pull request #21 from ChuckPa/chuckpa/transfer-view-history-with-viewstate
Export View history with viewstate
2022-11-21 01:05:34 -05:00
ChuckPa 7c56552ff7 Export View history with viewstate
Export view history table as well.
While here,  clean up the logic
Import using the same style as the other functions do.
Minor cleanup of user output. 

Final testing & review before release
2022-11-21 01:03:26 -05:00
Chuck fc921293fe Merge pull request #18 from ChuckPa/chuckpa/sort-supported-hosts
Sort supported hosts list
2022-11-16 16:47:06 -05:00
ChuckPa db1f1da8fc Sort supported hosts list 2022-11-16 16:43:24 -05:00
Chuck 20ee668d98 Merge pull request #17 from ChuckPa/chuckpa/update-doc
Add sample session to README.md
2022-11-16 16:22:14 -05:00
ChuckPa 6b63fcb610 Add Sample Session 2022-11-16 16:17:57 -05:00
ChuckPa 3fda441b32 Add PMS interlock
Prevents database actions when PMS is active.
2022-11-16 13:50:02 -05:00
Chuck 972b03c575 Merge pull request #9 from 2bits/2bits/support-mac
Changes to support MacOS
2022-11-16 01:02:31 -05:00
2bits 71502bc203 Merge branch 'ChuckPa:master' into 2bits/support-mac 2022-11-15 21:04:38 -08:00
Tommy Mikkelsen e97d46a16a Merge pull request #16 from ChuckPa/ukdtom/issue15
Readme needs update
2022-11-15 23:58:41 +01:00
Tommy Mikkelsen 75ebe8fb63 Readme needs update
Fixes #15
2022-11-15 23:55:32 +01:00
Tommy Mikkelsen f882fef740 Merge pull request #14 from ChuckPa/ukdtom/issue13
Update ReadMe
2022-11-15 23:52:10 +01:00
Tommy Mikkelsen 6b046fd233 Update ReadMe
Fixes #13
2022-11-15 23:48:21 +01:00
2bits e1f68ccd74 Align some WriteLog entries
The log is handsome when the spacing is right.
2022-11-15 01:41:40 -08:00
2bits 02450bf770 On Mac store plexmediaserver.pid in TMP
Storing `plexmediaserver.pid` in TMP is safer on a Mac than in a place
the engineering team is working. Make that change to the one we create.
Because TMP is not yet initialized in HostConfig(), go ahead & create it.
2022-11-15 00:46:51 -08:00
2bits fac2aa6db4 Change DBRepair.sh to support Apple Mac.
This is the primary commit for PlexDBRepair that adds Mac support
to `DBRepair.sh`

Add all the PMS paths unique to Mac in `HostConfig()`.
Include code to create a `plexmediaserver.pid` file.
That concept needs more attention to guard against PMS running.

Deal with MacOS quirks in shell utils and builtins like
- sed -i
- echo -n
- pidof
- awk
- colons & forward slashes in filenames
2022-11-14 17:50:07 -08:00
2bits 4f581d251a Initial commit. Modify README to include Apple Mac
Initial commit for PlexDBRepair to add support for Mac.
Modify `README.sh` to inlcude Mac as a supported host.
Show how to run `DBRepair.sh` from the command line as Administrator.
2022-11-14 17:39:11 -08:00
Chuck d7c8ac7abc Update README.md 2022-11-13 12:07:58 -05:00
Chuck 63920205ff Merge pull request #8 from ChuckPa/chuckpa/Watchlist-release
Chuckpa/watchlist release
2022-11-13 12:02:06 -05:00
ChuckPa 3b625879d4 Merge branch 'chuckpa/watchlist' 2022-11-13 11:36:53 -05:00
ChuckPa c1feacaefa Import ViewState from another datatbase
Import viewstate (watch history) from another database.

Viewstate import - Development complete

Developer initial testing complete.
1.  Copy DB from Syno to Linux workstation
2.  Setup empty PMS on Linux workstation
3.  Add library section
4.  Observe media all unwatched
5.  import the DS418's database 
6.  Verify on Linux workstation -- all titles now marked played



Replaced 'echo -n' with posix printf.


Timestamp changed,  Add Undo to new code

1.  To increase portability,  changed the ':' in timestamo to '.' (MacOS problems)
2.  Completed adding WriteLog and logic to support UNDO for importing Viewstate



Change 'cut' back to awk


use printf in new code. Reapply timestamp change


Viewstate import - Improve error checking and recovery


Fix misplaced quote
2022-11-13 11:35:51 -05:00
Chuck b58b27b071 Merge pull request #7 from ChuckPa/chuckpa/watchlist
Add watchlist (viewstate) import support to utility
2022-11-13 11:25:30 -05:00
ChuckPa e30053be35 Fix misplaced quote 2022-11-12 23:01:40 -05:00
ChuckPa b645e0f205 Viewstate import - Improve error checking and recovery 2022-11-12 01:18:04 -05:00
ChuckPa aa296cf52d use printf in new code. Reapply timestamp change 2022-11-11 13:57:15 -05:00
ChuckPa f45227abc4 Change 'cut' back to awk 2022-11-09 21:38:24 -05:00
ChuckPa 303cde633d Timestamp changed, Add Undo to new code
1.  To increase portability,  changed the ':' in timestamo to '.' (MacOS problems)
2.  Completed adding WriteLog and logic to support UNDO for importing Viewstate
2022-11-09 21:33:30 -05:00
ChuckPa 580ec27986 Replaced 'echo -n' with posix printf. 2022-11-08 11:19:31 -05:00
ChuckPa ba4474ed06 Import viewstate (watch history) from another database.
Viewstate import - Development complete

Developer initial testing complete.
1.  Copy DB from Syno to Linux workstation
2.  Setup empty PMS on Linux workstation
3.  Add library section
4.  Observe media all unwatched
5.  import the DS418's database 
6.  Verify on Linux workstation -- all titles now marked played
2022-11-07 18:52:32 -05:00
Chuck e68d61e011 Merge pull request #4 from 2bits/newsuppdir-add-echo
Fix echo variable pipe for NewSuppDir
2022-11-06 18:10:38 -05:00
2bits 7c5ffd9665 Fix echo variable pipe for NewSuppDir
This commit fixes a `NewSuppDir` bug reported in the forum SQLite3 thread, https://forums.plex.tv/t/suggested-sqlite3-db-optimizations/794749/122
where a `sed` was missing its `echo` variable and pipe.

The code between lines 328 and 350 was cut and tested in a Bourne script on a Mac, but not the whole `DBRepair.sh` on the user's OS.
There's no real need to pull this, as it's not for extra credit :)  But it get's the word out in a central location.
2022-11-06 13:40:42 -08:00
ChuckPa d967c08e2f Fixes per @2bits 2022-11-03 02:11:40 -04:00
ChuckPa 6e675ae48b Fixed variable editing when reading override.conf 2022-11-02 22:17:24 -04:00
ChuckPa efaaaadfc3 Update Readme.MD
User documentation & examples.
2022-10-31 17:14:48 -04:00
ChuckPa 4a7664b160 WD (OS 5) support
Add support for WD (OS 5)  systems
2022-10-28 13:17:31 -04:00
ChuckPa dbcbd76f83 Updated readme 2022-10-20 14:17:36 -04:00
ChuckPa 7f503642ba Docker: Simplify LSIO + PlexInc image detection 2022-10-15 16:59:58 -04:00
ChuckPa 03e738ec8f Add support for Docker and permission checks 2022-10-12 12:19:12 -04:00
ChuckPa 00e1080049 Add License.md, size Reports, README. 2022-09-21 19:18:17 -04:00
ChuckPa 43323e8cbf Initial Commit - DBRepair.sh 2022-09-01 19:19:12 -04:00
ChuckPa 2cb2d51e99 Initial commit 2022-09-01 19:16:50 -04:00