## 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) {
Auto-Add New Books to Kobo Shelf

When enabled, newly added books will be automatically added to your Kobo shelf for syncing. This eliminates the need to manually add each book to the shelf.

} @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.

Force Enable Hyphenation

Force enable hyphenation. Otherwise, hyphenation is only enabled when text alignment on the Kobo device is explicitly set to justified.

Convert CBX to EPUB

Converts CBX files to EPUB during Kobo sync, allowing CBX files to be downloaded and read on Kobo devices.

Conversion image compression: {{ koboSettings.conversionImageCompressionPercentage }}%

Comic book conversions can sometimes result in very large files. This setting allows you to compress the images during conversion to prevent size from shooting up.

CBX Conversion Size Limit: {{ koboSettings.conversionLimitInMbForCbx }} MB

Comic book archives can be very large due to high-resolution images. Set a reasonable limit to prevent server overload during conversion.
Recommended: 100-200MB for most comic libraries. CBX files over this limit will not be converted or synced to the device.

}
} @else {

### Access Restricted

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

}