Skip to content

feat: add fix-inconsistencies library maintenance tool#2232

Open
tankxbvr wants to merge 1 commit into
xbapps:masterfrom
tankxbvr:feature/fix-inconsistencies
Open

feat: add fix-inconsistencies library maintenance tool#2232
tankxbvr wants to merge 1 commit into
xbapps:masterfrom
tankxbvr:feature/fix-inconsistencies

Conversation

@tankxbvr

Copy link
Copy Markdown

Adds a Fix All button under Options → Cache that scans for library data that has drifted out of sync and repairs it in the background (with live progress):

  • Files matched to a deleted or missing scene — re-matched to a live scene of the same title (e.g. a re-published version), or unmatched.
  • Scenes whose is_available / is_accessible / total_file_size no longer match their files — recomputed.
  • Tags / actors whose cached scene counts are stale — recounted.

The scan and fixes are exposed under /api/inconsistencies in a self-contained pkg/inconsistencies package. This repairs existing drift; the root-cause prevention lives in the related fixes to UpdateStatus and CountTags/CountActorTags.

@tankxbvr
tankxbvr force-pushed the feature/fix-inconsistencies branch from b4e5d4c to f2f2eba Compare July 18, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant