## Kobo Integration Configuration

Configure Kobo device integration to sync your library books and reading progress with your Kobo e-reader.

@if (hasKoboTokenPermission) {

### Sync Configuration

Enable and configure synchronization between your Booklore library and Kobo device.

Enable Kobo Sync

Turn on synchronization to automatically sync your library books to your Kobo device.

@if (koboSyncSettings.syncEnabled) {
Kobo Sync Token

Your unique sync token for authenticating with your Kobo device. Keep this secure.

Token Management

Regenerate your sync token if needed. This will invalidate the current token.

Mark as Reading at: {{ koboSyncSettings.progressMarkAsReadingThreshold?.toFixed(0) }}%

Books are marked as "Reading" when progress exceeds this percentage. This helps automatically track which books you've started.
Recommended: 1% (default) - marks as reading after the first page or two.

Mark as Finished at: {{ koboSyncSettings.progressMarkAsFinishedThreshold?.toFixed(0) }}%

Books are marked as "Finished" when progress reaches this percentage. Accounts for books where the last few pages are acknowledgments or index.
Recommended: 99% (default) - marks as finished when nearly complete.

}
@if (isAdmin) {

### Administrator Settings

Configure advanced Kobo sync settings that affect all users on this server.

Convert to KEPUB

Pros: KEPUB format enables enhanced Kobo features like better typography, reading stats, and faster page turns.
Cons: Conversion takes extra processing time and may occasionally fail for complex layouts. Books over the size limit below will skip conversion automatically.

Conversion Size Limit: {{ koboSettings.conversionLimitInMb }} MB

Large files (100MB+) can cause conversion timeouts and server strain. Lower limits ensure faster syncing but may skip conversion of larger books.
Recommended: 50-100MB for most libraries. Very large books will sync as regular EPUB regardless of this setting.

}
} @else {

### Access Restricted

Access to Kobo sync is restricted.
Please contact your administrator to request permission.

}