mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2025-11-05 18:58:53 -05:00
Cleanup update tag handling. Inform users of DB cleanup tasks.
Correct version tag handling (remove junk)
This commit is contained in:
commit
3262ec7f7a
10
DBRepair.sh
10
DBRepair.sh
@ -2,12 +2,12 @@
|
|||||||
#########################################################################
|
#########################################################################
|
||||||
# Plex Media Server database check and repair utility script. #
|
# Plex Media Server database check and repair utility script. #
|
||||||
# Maintainer: ChuckPa #
|
# Maintainer: ChuckPa #
|
||||||
# Version: v1.10.05 #
|
# Version: v1.10.06 #
|
||||||
# Date: 20-May-2025 #
|
# Date: 22-May-2025 #
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
# Version for display purposes
|
# Version for display purposes
|
||||||
Version="v1.10.05"
|
Version="v1.10.06"
|
||||||
|
|
||||||
# Have the databases passed integrity checks
|
# Have the databases passed integrity checks
|
||||||
CheckedDB=0
|
CheckedDB=0
|
||||||
@ -977,6 +977,8 @@ DoRepair() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Temporary DB actions
|
# Temporary DB actions
|
||||||
|
Output "Performing DB cleanup tasks."
|
||||||
|
WriteLog "DB Cleanup tasks."
|
||||||
"$PLEX_SQLITE" $CPPL.db "DELETE from statistics_bandwidth where account_id is NULL;"
|
"$PLEX_SQLITE" $CPPL.db "DELETE from statistics_bandwidth where account_id is NULL;"
|
||||||
|
|
||||||
# Continue
|
# Continue
|
||||||
@ -1639,7 +1641,7 @@ DoUpdateTimestamp() {
|
|||||||
GetLatestRelease() {
|
GetLatestRelease() {
|
||||||
Response=$(curl -s "https://api.github.com/repos/ChuckPa/PlexDBRepair/tags")
|
Response=$(curl -s "https://api.github.com/repos/ChuckPa/PlexDBRepair/tags")
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
LatestVersion="$(echo "$Response" | awk -F : '{print $2}' | awk -F \, '{print $1}' | tr -d \")"
|
LatestVersion="$(echo "$Response" | awk -F : '{print $2}' | awk -F \, '{print $1}' | tr -d \" | head -3 | tail -1)"
|
||||||
else
|
else
|
||||||
LatestVersion="$Version"
|
LatestVersion="$Version"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -8,6 +8,11 @@
|
|||||||

|

|
||||||
|
|
||||||
# Release Info:
|
# Release Info:
|
||||||
|
v1.10.06
|
||||||
|
|
||||||
|
1. Update tags - When updating, DBRepair would not format cleanly. This update corrects that formatting.
|
||||||
|
It would often show the tags for multiple previous versions. This is undesirable.
|
||||||
|
|
||||||
v1.10.05
|
v1.10.05
|
||||||
|
|
||||||
1. DB Cleanup - Temporary assist with PMS database cleanups
|
1. DB Cleanup - Temporary assist with PMS database cleanups
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user