mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-03 04:40:09 +00:00
Add filesystem scan trigger and version badge features
Implements optional filesystem scan triggering for Plex and Audiobookshelf after file organization, with new settings in the admin UI, setup wizard, and API. Updates documentation to reflect scan trigger options and improved file organization/cleanup logic. Refactors dropdown menus to use smart positioning and portals for better UX. Adds a version API route and a VersionBadge component to display build info in the header. Updates Docker build to inject version metadata.
This commit is contained in:
@@ -188,6 +188,13 @@ export async function POST(request: NextRequest) {
|
||||
create: { key: 'plex_machine_identifier', value: machineIdentifier },
|
||||
});
|
||||
}
|
||||
|
||||
// Save trigger_scan_after_import setting
|
||||
await prisma.configuration.upsert({
|
||||
where: { key: 'plex.trigger_scan_after_import' },
|
||||
update: { value: plex.trigger_scan_after_import === true ? 'true' : 'false' },
|
||||
create: { key: 'plex.trigger_scan_after_import', value: plex.trigger_scan_after_import === true ? 'true' : 'false' },
|
||||
});
|
||||
} else {
|
||||
// Audiobookshelf configuration
|
||||
await prisma.configuration.upsert({
|
||||
@@ -209,6 +216,13 @@ export async function POST(request: NextRequest) {
|
||||
create: { key: 'audiobookshelf.library_id', value: audiobookshelf.library_id },
|
||||
});
|
||||
|
||||
// Save trigger_scan_after_import setting
|
||||
await prisma.configuration.upsert({
|
||||
where: { key: 'audiobookshelf.trigger_scan_after_import' },
|
||||
update: { value: audiobookshelf.trigger_scan_after_import === true ? 'true' : 'false' },
|
||||
create: { key: 'audiobookshelf.trigger_scan_after_import', value: audiobookshelf.trigger_scan_after_import === true ? 'true' : 'false' },
|
||||
});
|
||||
|
||||
// OIDC configuration (if enabled)
|
||||
if (authMethod === 'oidc' || authMethod === 'both') {
|
||||
await prisma.configuration.upsert({
|
||||
|
||||
Reference in New Issue
Block a user