diff --git a/DBRepair.sh b/DBRepair.sh index 952a8e8..d163b97 100755 --- a/DBRepair.sh +++ b/DBRepair.sh @@ -2,12 +2,12 @@ ######################################################################### # Plex Media Server database check and repair utility script. # # Maintainer: ChuckPa # -# Version: v1.01.02 # -# Date: 10-Nov-2023 # +# Version: v1.01.03 # +# Date: 25-Nov-2023 # ######################################################################### # Version for display purposes -Version="v1.01.02" +Version="v1.01.03" # Flag when temp files are to be retained Retain=0 @@ -882,7 +882,8 @@ DoRepair() { Output "Importing Main DB." "$PLEX_SQLITE" "$TMPDIR/$CPPL.db-REPAIR-$TimeStamp" < "$TMPDIR/library.plexapp.sql-$TimeStamp" Result=$? - if ! SQLiteOK $Result; then + [ $IgnoreErrors -eq 1 ] && Result=0 + Output "Error $Result from Plex SQLite while importing from '$TMPDIR/library.plexapp.sql-$TimeStamp'" WriteLog "Repair - Cannot import main database from '$TMPDIR/library.plexapp.sql-$TimeStamp' - FAIL ($Result)" Output "Cannot continue." diff --git a/ReleaseNotes b/ReleaseNotes index 3f3c0e6..2ca49f3 100644 --- a/ReleaseNotes +++ b/ReleaseNotes @@ -8,6 +8,11 @@ ![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg) # Release Info: +v1.01.03 + + - Missing IgnoreErrors (-i / -f) test when reimporting damaged DB with certain errors prevented repair + in all cases. + v1.01.02 - Correct updating when scripted versus interactive.