WIP: replacement content for existing PR (#3011)

This commit is contained in:
Max
2026-03-12 19:13:30 -06:00
committed by GitHub
parent 5b901fc21e
commit 5fa511a26c
49 changed files with 202 additions and 53 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ java {
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
configurations {
@@ -73,7 +74,7 @@ dependencies {
implementation 'io.documentnode:epub4j-core:4.2.3'
// --- Audio Metadata (Audiobook Support) ---
implementation 'net.jthink:jaudiotagger:3.0.1'
implementation 'com.github.RouHim:jaudiotagger:2.0.16'
// --- UNRAR Support ---
implementation 'com.github.junrar:junrar:7.5.8'
@@ -282,7 +282,7 @@ public class KomgaMapper {
case FB2 -> "application/fictionbook2+zip";
case MOBI -> "application/x-mobipocket-ebook";
case AZW3 -> "application/vnd.amazon.ebook";
case AUDIOBOOK -> "audio/mp4";
case AUDIOBOOK -> "audio/*";
};
}
@@ -128,7 +128,7 @@ public class BookFileEntity {
.filter(java.nio.file.Files::isRegularFile)
.filter(p -> {
String name = p.getFileName().toString().toLowerCase();
return name.endsWith(".mp3") || name.endsWith(".m4a") || name.endsWith(".m4b");
return name.endsWith(".mp3") || name.endsWith(".m4a") || name.endsWith(".m4b") || name.endsWith(".opus");
})
.sorted()
.findFirst()
@@ -20,7 +20,8 @@ public enum BookFileExtension {
FB2("fb2", BookFileType.FB2),
M4B("m4b", BookFileType.AUDIOBOOK),
M4A("m4a", BookFileType.AUDIOBOOK),
MP3("mp3", BookFileType.AUDIOBOOK);
MP3("mp3", BookFileType.AUDIOBOOK),
OPUS("opus", BookFileType.AUDIOBOOK);
private final String extension;
private final BookFileType type;
@@ -15,7 +15,7 @@ public enum BookFileType {
FB2(Set.of("fb2")),
MOBI(Set.of("mobi")),
AZW3(Set.of("azw3", "azw")),
AUDIOBOOK(Set.of("m4b", "m4a", "mp3"));
AUDIOBOOK(Set.of("m4b", "m4a", "mp3", "opus"));
private final Set<String> extensions;
@@ -85,6 +85,6 @@ public class FileFingerprint {
private static boolean isAudioFile(String fileName) {
if (fileName == null) return false;
String lower = fileName.toLowerCase();
return lower.endsWith(".mp3") || lower.endsWith(".m4a") || lower.endsWith(".m4b");
return lower.endsWith(".mp3") || lower.endsWith(".m4a") || lower.endsWith(".m4b") || lower.endsWith(".opus");
}
}
@@ -40,7 +40,7 @@ public class MetadataExtractorFactory {
case FB2 -> fb2MetadataExtractor.extractMetadata(file);
case MOBI -> mobiMetadataExtractor.extractMetadata(file);
case AZW3, AZW -> azw3MetadataExtractor.extractMetadata(file);
case M4B, M4A, MP3 -> audiobookMetadataExtractor.extractMetadata(file);
case M4B, M4A, MP3, OPUS -> audiobookMetadataExtractor.extractMetadata(file);
};
}
@@ -52,7 +52,7 @@ public class MetadataExtractorFactory {
case FB2 -> fb2MetadataExtractor.extractCover(file);
case MOBI -> mobiMetadataExtractor.extractCover(file);
case AZW3, AZW -> azw3MetadataExtractor.extractCover(file);
case M4B, M4A, MP3 -> audiobookMetadataExtractor.extractCover(file);
case M4B, M4A, MP3, OPUS -> audiobookMetadataExtractor.extractCover(file);
};
}
@@ -694,6 +694,7 @@ public class OpdsFeedService {
case AUDIOBOOK -> {
String lower = bookFile.getFileName().toLowerCase();
if (lower.endsWith(".mp3")) yield "audio/mpeg";
if (lower.endsWith(".opus")) yield "audio/opus";
yield "audio/mp4";
}
};
@@ -20,7 +20,7 @@ import java.util.stream.Stream;
public class AudioFileUtilityService {
private static final Set<String> AUDIO_EXTENSIONS = Set.of(
".mp3", ".m4a", ".m4b"
".mp3", ".m4a", ".m4b", ".opus"
);
/**
@@ -55,6 +55,8 @@ public class AudioFileUtilityService {
return "audio/mp4";
} else if (fileName.endsWith(".mp3")) {
return "audio/mpeg";
} else if (fileName.endsWith(".opus")) {
return "audio/opus";
}
return "application/octet-stream";
}
@@ -140,11 +140,10 @@ public class AudioMetadataService {
totalDurationMs += trackDurationMs;
if (i == 0) {
long bitrateValue = header.getBitRateAsNumber();
bitrate = bitrateValue > 0 ? (int) bitrateValue : null;
codec = header.getEncodingType();
sampleRate = header.getSampleRateAsNumber();
channels = parseChannels(header.getChannels());
bitrate = safeBitrate(header, trackPath);
codec = safeEncodingType(header, trackPath);
sampleRate = safeSampleRate(header, trackPath);
channels = parseChannels(safeChannels(header, trackPath));
if (tag != null) {
title = getTagValue(tag, FieldKey.ALBUM, FieldKey.TITLE);
author = getTagValue(tag, FieldKey.ALBUM_ARTIST, FieldKey.ARTIST);
@@ -222,13 +221,12 @@ public class AudioMetadataService {
AudioHeader header = audioFile.getAudioHeader();
Tag tag = audioFile.getTag();
long durationMs = (long) (header.getPreciseTrackLength() * 1000);
long bitrateValue = header.getBitRateAsNumber();
long durationMs = safeDurationMs(header, audioPath);
builder.durationMs(durationMs)
.bitrate(bitrateValue > 0 ? (int) bitrateValue : null)
.codec(header.getEncodingType())
.sampleRate(header.getSampleRateAsNumber())
.channels(parseChannels(header.getChannels()));
.bitrate(safeBitrate(header, audioPath))
.codec(safeEncodingType(header, audioPath))
.sampleRate(safeSampleRate(header, audioPath))
.channels(parseChannels(safeChannels(header, audioPath)));
if (tag != null) {
builder.title(getTagValue(tag, FieldKey.TITLE, FieldKey.ALBUM))
@@ -360,4 +358,52 @@ public class AudioMetadataService {
return null;
}
}
private long safeDurationMs(AudioHeader header, Path audioPath) {
try {
return (long) (header.getPreciseTrackLength() * 1000);
} catch (RuntimeException e) {
log.warn("Failed to read track duration from {}", audioPath, e);
return 0L;
}
}
private Integer safeBitrate(AudioHeader header, Path audioPath) {
try {
long bitrateValue = header.getBitRateAsNumber();
return bitrateValue > 0 ? (int) bitrateValue : null;
} catch (RuntimeException e) {
log.debug("Audio header has no bitrate for {}", audioPath, e);
return null;
}
}
private Integer safeSampleRate(AudioHeader header, Path audioPath) {
try {
int sampleRate = header.getSampleRateAsNumber();
return sampleRate > 0 ? sampleRate : null;
} catch (RuntimeException e) {
log.debug("Audio header has no sample rate for {}", audioPath, e);
return null;
}
}
private String safeEncodingType(AudioHeader header, Path audioPath) {
try {
String encodingType = header.getEncodingType();
return encodingType != null && !encodingType.isBlank() ? encodingType : null;
} catch (RuntimeException e) {
log.debug("Audio header has no encoding type for {}", audioPath, e);
return null;
}
}
private String safeChannels(AudioHeader header, Path audioPath) {
try {
return header.getChannels();
} catch (RuntimeException e) {
log.debug("Audio header has no channel info for {}", audioPath, e);
return null;
}
}
}
@@ -155,7 +155,7 @@ public class FileUtils {
public boolean isAudioFile(String fileName) {
if (fileName == null) return false;
String lower = fileName.toLowerCase();
return lower.endsWith(".mp3") || lower.endsWith(".m4a") || lower.endsWith(".m4b");
return lower.endsWith(".mp3") || lower.endsWith(".m4a") || lower.endsWith(".m4b") || lower.endsWith(".opus");
}
/**
@@ -234,10 +234,11 @@ class AudioFileUtilityServiceTest {
void getSupportedExtensions_returnsAllExpectedExtensions() {
var extensions = audioFileUtility.getSupportedExtensions();
assertEquals(3, extensions.size());
assertEquals(4, extensions.size());
assertTrue(extensions.contains(".mp3"));
assertTrue(extensions.contains(".m4a"));
assertTrue(extensions.contains(".m4b"));
assertTrue(extensions.contains(".opus"));
}
@Test
@@ -569,6 +569,89 @@ class AudioMetadataServiceTest {
}
}
@Test
void getMetadata_singleFile_survivesMissingHeaderFields() throws Exception {
AudioFile audioFile = mock(AudioFile.class);
AudioHeader header = mock(AudioHeader.class);
Tag tag = mock(Tag.class);
when(audioFile.getAudioHeader()).thenReturn(header);
when(audioFile.getTag()).thenReturn(tag);
when(header.getPreciseTrackLength()).thenReturn(3600.0);
when(header.getBitRateAsNumber()).thenThrow(new NullPointerException("bitRate"));
when(header.getEncodingType()).thenReturn("Opus");
when(header.getSampleRateAsNumber()).thenThrow(new NullPointerException("sampleRate"));
when(header.getChannels()).thenThrow(new NullPointerException("channels"));
when(tag.getFirst(FieldKey.TITLE)).thenReturn("Test Opus");
try (MockedStatic<AudioFileIO> audioFileIOMock = mockStatic(AudioFileIO.class)) {
audioFileIOMock.when(() -> AudioFileIO.read(audioPath.toFile())).thenReturn(audioFile);
AudiobookInfo info = audioMetadataService.getMetadata(bookFileEntity, audioPath);
assertNotNull(info);
assertEquals(3600000L, info.getDurationMs());
assertNull(info.getBitrate());
assertEquals("Opus", info.getCodec());
assertNull(info.getSampleRate());
assertNull(info.getChannels());
assertEquals("Test Opus", info.getTitle());
}
}
@Test
void getMetadata_folderBased_survivesMissingFirstTrackHeaderFields() throws Exception {
bookFileEntity.setFolderBased(true);
Path folderPath = tempDir.resolve("opus_folder");
Files.createDirectory(folderPath);
Path track1 = folderPath.resolve("parts-01.opus");
Path track2 = folderPath.resolve("parts-02.opus");
Files.createFile(track1);
Files.createFile(track2);
when(audioFileUtility.listAudioFiles(folderPath)).thenReturn(List.of(track1, track2));
when(audioFileUtility.getTrackTitleFromFilename("parts-02.opus")).thenReturn("parts-02");
AudioFile audioFile1 = mock(AudioFile.class);
AudioFile audioFile2 = mock(AudioFile.class);
AudioHeader header1 = mock(AudioHeader.class);
AudioHeader header2 = mock(AudioHeader.class);
Tag tag1 = mock(Tag.class);
when(audioFile1.getAudioHeader()).thenReturn(header1);
when(audioFile1.getTag()).thenReturn(tag1);
when(header1.getPreciseTrackLength()).thenReturn(1800.0);
when(header1.getBitRateAsNumber()).thenThrow(new NullPointerException("bitRate"));
when(header1.getEncodingType()).thenReturn("Opus");
when(header1.getSampleRateAsNumber()).thenThrow(new NullPointerException("sampleRate"));
when(header1.getChannels()).thenThrow(new NullPointerException("channels"));
when(tag1.getFirst(FieldKey.ALBUM)).thenReturn("Test Album");
when(tag1.getFirst(FieldKey.TITLE)).thenReturn("Part 1");
when(audioFile2.getAudioHeader()).thenReturn(header2);
when(audioFile2.getTag()).thenReturn(null);
when(header2.getPreciseTrackLength()).thenReturn(1200.0);
try (MockedStatic<AudioFileIO> audioFileIOMock = mockStatic(AudioFileIO.class)) {
audioFileIOMock.when(() -> AudioFileIO.read(track1.toFile())).thenReturn(audioFile1);
audioFileIOMock.when(() -> AudioFileIO.read(track2.toFile())).thenReturn(audioFile2);
AudiobookInfo info = audioMetadataService.getMetadata(bookFileEntity, folderPath);
assertNotNull(info);
assertTrue(info.isFolderBased());
assertEquals(3000000L, info.getDurationMs());
assertEquals("Test Album", info.getTitle());
assertEquals("Opus", info.getCodec());
assertNull(info.getBitrate());
assertNull(info.getSampleRate());
assertNull(info.getChannels());
assertEquals("Part 1", info.getTracks().get(0).getTitle());
assertEquals("parts-02", info.getTracks().get(1).getTitle());
}
}
@Test
void getMetadata_backfillsChapters_whenDbHasMetadataButNoChapters() throws Exception {
bookFileEntity.setDurationSeconds(3600L);
@@ -49,7 +49,7 @@ export class AdditionalFileUploaderComponent implements OnInit, OnDestroy {
fileType: AdditionalFileType = AdditionalFileType.ALTERNATIVE_FORMAT;
isUploading = false;
readonly AdditionalFileType = AdditionalFileType;
private static readonly BOOK_FORMAT_ACCEPT = '.pdf,.epub,.cbz,.cbr,.cb7,.fb2,.mobi,.azw,.azw3,.m4b,.m4a,.mp3';
private static readonly BOOK_FORMAT_ACCEPT = '.pdf,.epub,.cbz,.cbr,.cb7,.fb2,.mobi,.azw,.azw3,.m4b,.m4a,.mp3,.opus';
maxFileSizeBytes?: number;
maxFileSizeDisplay: string = '100 MB';
@@ -355,6 +355,11 @@
color: #fff;
}
.book-type-opus {
background: var(--book-type-opus-color);
color: #fff;
}
.book-type-cbz {
background: var(--book-type-cbz-color);
color: #fff;
@@ -890,6 +890,7 @@ export class BookCardComponent implements OnInit, OnChanges, OnDestroy {
case 'm4b':
case 'm4a':
case 'mp3':
case 'opus':
return 'pi pi-headphones';
default:
return 'pi pi-file';
@@ -153,7 +153,7 @@ export class BookFileService {
mobi: 'MOBI',
azw3: 'AZW3', azw: 'AZW3',
fb2: 'FB2',
m4b: 'AUDIOBOOK', m4a: 'AUDIOBOOK', mp3: 'AUDIOBOOK',
m4b: 'AUDIOBOOK', m4a: 'AUDIOBOOK', mp3: 'AUDIOBOOK', opus: 'AUDIOBOOK',
};
const bookType = EXTENSION_TO_BOOK_TYPE[ext] ?? null;
@@ -291,7 +291,8 @@ export class MagicShelfComponent implements OnInit {
{label: 'AZW3', value: 'azw3'},
{label: 'M4B', value: 'm4b'},
{label: 'M4A', value: 'm4a'},
{label: 'MP3', value: 'mp3'}
{label: 'MP3', value: 'mp3'},
{label: 'OPUS', value: 'opus'}
];
get readStatusOptions() {
@@ -180,6 +180,7 @@ export class MetadataTabsComponent {
case 'm4b':
case 'm4a':
case 'mp3':
case 'opus':
return 'pi pi-headphones';
default:
return 'pi pi-file';
@@ -1080,6 +1080,7 @@ export class MetadataViewerComponent implements OnInit, OnChanges, AfterViewChec
case 'm4b':
case 'm4a':
case 'mp3':
case 'opus':
return 'pi pi-headphones';
default:
return 'pi pi-file';
@@ -4,7 +4,7 @@
<p-progressSpinner strokeWidth="3" />
<span class="loading-text">{{ t('loading') }}</span>
</div>
} @else {
} @else if (audiobookInfo) {
<div class="audiobook-player">
<!-- Hidden audio element -->
<audio
@@ -395,5 +395,9 @@
</aside>
}
</div>
} @else {
<div class="loading-container">
<span class="loading-text">{{ t('toast.loadFailed') }}</span>
</div>
}
</ng-container>
@@ -89,7 +89,7 @@
name="file"
[customUpload]="true"
[multiple]="true"
accept=".pdf,.epub,.cbz,.cbr,.cb7,.fb2,.mobi,.azw,.azw3,.m4b,.mp3"
accept=".pdf,.epub,.cbz,.cbr,.cb7,.fb2,.mobi,.azw,.azw3,.m4b,.m4a,.mp3,.opus"
(onSelect)="onFilesSelect($event)"
(uploadHandler)="uploadFiles($event)">
<ng-template #header let-files let-chooseCallback="chooseCallback" let-clearCallback="clearCallback" let-uploadCallback="uploadCallback">
+1 -1
View File
@@ -452,7 +452,7 @@
"statusReady": "Bereit",
"statusFailed": "Fehlgeschlagen",
"dragDropText": "Ziehen Sie eine Datei hierher, um sie hochzuladen.",
"supportedFormats": "Unterstützte Formate: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Maximale Dateigröße: {{ size }} pro Datei",
"uploadForBook": "Eine zusätzliche Datei für <strong>{{ title }}</strong> hochladen.",
"thisBook": "dieses Buch",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} Dateien",
"failedCount": "({{ count }} fehlgeschlagen)",
"dragDropTitle": "Dateien per Drag-and-Drop ablegen",
"supportedFormats": "Unterstützte Formate: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Maximale Dateigröße: {{ size }} pro Datei",
"fileTooLargeTooltip": "Datei zu groß",
"uploadFailedTooltip": "Hochladen fehlgeschlagen",
+1 -1
View File
@@ -495,7 +495,7 @@
"statusReady": "Ready",
"statusFailed": "Failed",
"dragDropText": "Drag and drop a file here to upload.",
"supportedFormats": "Supported formats: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "Supported formats: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.m4a</strong>, <strong>.mp3</strong>, <strong>.opus</strong>",
"supplementaryAllFormats": "All file formats are supported for supplementary files.",
"maxFileSize": "Maximum file size: {{ size }} per file",
"uploadForBook": "Upload an additional file for <strong>{{ title }}</strong>.",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} files",
"failedCount": "({{ count }} failed)",
"dragDropTitle": "Drag and Drop Files",
"supportedFormats": "Supported formats: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "Supported formats: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.m4a</strong>, <strong>.mp3</strong>, <strong>.opus</strong>",
"maxFileSize": "Maximum file size: {{ size }} per file",
"fileTooLargeTooltip": "File too large",
"uploadFailedTooltip": "Upload failed",
+1 -1
View File
@@ -495,7 +495,7 @@
"statusReady": "Listo",
"statusFailed": "Fallido",
"dragDropText": "Arrastre y suelte un archivo aquí para subir.",
"supportedFormats": "Formatos compatibles: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"supplementaryAllFormats": "Todos los formatos de archivo son compatibles con archivos complementarios.",
"maxFileSize": "Tamaño máximo de archivo: {{ size }} por archivo",
"uploadForBook": "Subir un archivo adicional para <strong>{{ title }}</strong>.",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} archivos",
"failedCount": "({{ count }} fallidos)",
"dragDropTitle": "Arrastra y suelta archivos",
"supportedFormats": "Formatos compatibles: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Tamaño máximo de archivo: {{ size }} por archivo",
"fileTooLargeTooltip": "Archivo demasiado grande",
"uploadFailedTooltip": "Error al subir",
+1 -1
View File
@@ -447,7 +447,7 @@
"statusReady": "Prêt",
"statusFailed": "Échec",
"dragDropText": "Glissez-déposez un fichier ici pour le téléverser.",
"supportedFormats": "Formats pris en charge : <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Taille maximale : {{ size }} par fichier",
"uploadForBook": "Téléverser un fichier supplémentaire pour <strong>{{ title }}</strong>.",
"thisBook": "ce livre",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} fichiers",
"failedCount": "({{ count }} échoué(s))",
"dragDropTitle": "Glisser-déposer des fichiers",
"supportedFormats": "Formats pris en charge : <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Taille maximale : {{ size }} par fichier",
"fileTooLargeTooltip": "Fichier trop volumineux",
"uploadFailedTooltip": "Échec du téléversement",
+1 -1
View File
@@ -451,7 +451,7 @@
"statusReady": "Spremno",
"statusFailed": "Neuspjelo",
"dragDropText": "Povucite i ispustite datoteku ovdje za učitavanje.",
"supportedFormats": "Podržani formati: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Maksimalna veličina datoteke: {{ size }} po datoteci",
"uploadForBook": "Učitajte dodatnu datoteku za <strong>{{ title }}</strong>.",
"thisBook": "ovu knjigu",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} datoteka",
"failedCount": "({{ count }} neuspjelo)",
"dragDropTitle": "Povucite i ispustite datoteke",
"supportedFormats": "Podržani formati: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Maksimalna veličina datoteke: {{ size }} po datoteci",
"fileTooLargeTooltip": "Datoteka je prevelika",
"uploadFailedTooltip": "Učitavanje nije uspjelo",
+1 -1
View File
@@ -444,7 +444,7 @@
"statusReady": "Pronto",
"statusFailed": "Fallito",
"dragDropText": "Trascina e rilascia un file qui per caricarlo.",
"supportedFormats": "Formati supportati: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Dimensione massima: {{ size }} per file",
"uploadForBook": "Carica un file aggiuntivo per <strong>{{ title }}</strong>.",
"thisBook": "questo libro",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} file",
"failedCount": "({{ count }} falliti)",
"dragDropTitle": "Trascina e rilascia i file",
"supportedFormats": "Formati supportati: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Dimensione massima: {{ size }} per file",
"fileTooLargeTooltip": "File troppo grande",
"uploadFailedTooltip": "Caricamento fallito",
+1 -1
View File
@@ -444,7 +444,7 @@
"statusReady": "準備完了",
"statusFailed": "失敗",
"dragDropText": "ここにファイルをドラッグ&ドロップしてアップロードします。",
"supportedFormats": "対応形式: <strong>.pdf</strong>、<strong>.epub</strong>、<strong>.cbz</strong>、<strong>.cbr</strong>、<strong>.cb7</strong>、<strong>.fb2</strong>、<strong>.mobi</strong>、<strong>.azw3</strong>、<strong>.m4b</strong>、<strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "最大ファイルサイズ: {{ size }}/ファイル",
"uploadForBook": "<strong>{{ title }}</strong>の追加ファイルをアップロードします。",
"thisBook": "この本",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} ファイル",
"failedCount": "({{ count }}件失敗)",
"dragDropTitle": "ファイルをドラッグ&ドロップ",
"supportedFormats": "対応形式: <strong>.pdf</strong>、<strong>.epub</strong>、<strong>.cbz</strong>、<strong>.cbr</strong>、<strong>.cb7</strong>、<strong>.fb2</strong>、<strong>.m4b</strong>、<strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "最大ファイルサイズ: {{ size }}/ファイル",
"fileTooLargeTooltip": "ファイルが大きすぎます",
"uploadFailedTooltip": "アップロードに失敗しました",
+1 -1
View File
@@ -444,7 +444,7 @@
"statusReady": "Gotowy",
"statusFailed": "Niepowodzenie",
"dragDropText": "Przeciągnij i upuść plik tutaj, aby go przesłać.",
"supportedFormats": "Obsługiwane formaty: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Maksymalny rozmiar pliku: {{ size }} na plik",
"uploadForBook": "Prześlij dodatkowy plik dla <strong>{{ title }}</strong>.",
"thisBook": "tej książki",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} plików",
"failedCount": "({{ count }} niepowodzenie)",
"dragDropTitle": "Przeciągnij i upuść pliki",
"supportedFormats": "Obsługiwane formaty: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Maksymalny rozmiar pliku: {{ size }} na plik",
"fileTooLargeTooltip": "Plik za duży",
"uploadFailedTooltip": "Przesyłanie nie powiodło się",
+1 -1
View File
@@ -444,7 +444,7 @@
"statusReady": "Pronto",
"statusFailed": "Falhou",
"dragDropText": "Arraste e solte um arquivo aqui para enviar.",
"supportedFormats": "Formatos suportados: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Tamanho máximo do arquivo: {{ size }} por arquivo",
"uploadForBook": "Enviar um arquivo adicional para <strong>{{ title }}</strong>.",
"thisBook": "este livro",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} arquivos",
"failedCount": "({{ count }} falhou)",
"dragDropTitle": "Arraste e Solte Arquivos",
"supportedFormats": "Formatos suportados: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Tamanho máximo do arquivo: {{ size }} por arquivo",
"fileTooLargeTooltip": "Arquivo muito grande",
"uploadFailedTooltip": "Envio falhou",
+1 -1
View File
@@ -444,7 +444,7 @@
"statusReady": "Готов",
"statusFailed": "Ошибка",
"dragDropText": "Перетащите файл сюда для загрузки.",
"supportedFormats": "Поддерживаемые форматы: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Максимальный размер файла: {{ size }}",
"uploadForBook": "Загрузить дополнительный файл для <strong>{{ title }}</strong>.",
"thisBook": "эту книгу",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} файлов",
"failedCount": "({{ count }} с ошибками)",
"dragDropTitle": "Перетащите файлы сюда",
"supportedFormats": "Поддерживаемые форматы: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Максимальный размер файла: {{ size }} на файл",
"fileTooLargeTooltip": "Файл слишком большой",
"uploadFailedTooltip": "Ошибка загрузки",
+1 -1
View File
@@ -452,7 +452,7 @@
"statusReady": "Pripravljeno",
"statusFailed": "Napaka",
"dragDropText": "Povleci in spusti datoteko sem za nalaganje.",
"supportedFormats": "Podprti formati: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Največja velikost: {{ size }} na datoteko",
"uploadForBook": "Naloži dodatno datoteko za <strong>{{ title }}</strong>.",
"thisBook": "to knjigo",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} datotek",
"failedCount": "({{ count }} spodletelo)",
"dragDropTitle": "Povleci in spusti datoteke",
"supportedFormats": "Podprti formati: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Največja velikost datoteke: {{ size }} na datoteko",
"fileTooLargeTooltip": "Datoteka je prevelika",
"uploadFailedTooltip": "Nalaganje ni uspelo",
+1 -1
View File
@@ -452,7 +452,7 @@
"statusReady": "Redo",
"statusFailed": "Misslyckades",
"dragDropText": "Dra och släpp en fil här för att ladda upp.",
"supportedFormats": "Format som stöds: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.mobi</strong>, <strong>.azw3</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Maximal filstorlek: {{ size }} per fil",
"uploadForBook": "Ladda upp en extra fil för <strong>{{ title }}</strong>.",
"thisBook": "denna bok",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} filer",
"failedCount": "({{ count }} misslyckades)",
"dragDropTitle": "Dra och släpp filer",
"supportedFormats": "Format som stöds: <strong>.pdf</strong>, <strong>.epub</strong>, <strong>.cbz</strong>, <strong>.cbr</strong>, <strong>.cb7</strong>, <strong>.fb2</strong>, <strong>.m4b</strong>, <strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "Maximal filstorlek: {{ size }} per fil",
"fileTooLargeTooltip": "Filen är för stor",
"uploadFailedTooltip": "Uppladdning misslyckades",
+1 -1
View File
@@ -445,7 +445,7 @@
"statusReady": "就绪",
"statusFailed": "失败",
"dragDropText": "将文件拖放到此处进行上传。",
"supportedFormats": "支持的格式:<strong>.pdf</strong>、<strong>.epub</strong>、<strong>.cbz</strong>、<strong>.cbr</strong>、<strong>.cb7</strong>、<strong>.fb2</strong>、<strong>.mobi</strong>、<strong>.azw3</strong>、<strong>.m4b</strong>、<strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "最大文件大小:每个文件 {{ size }}",
"uploadForBook": "为 <strong>{{ title }}</strong> 上传附加文件。",
"thisBook": "此图书",
+1 -1
View File
@@ -21,7 +21,7 @@
"filesCount": "{{ uploaded }}/{{ total }} 个文件",
"failedCount": "({{ count }} 个失败)",
"dragDropTitle": "拖放文件",
"supportedFormats": "支持的格式:<strong>.pdf</strong>、<strong>.epub</strong>、<strong>.cbz</strong>、<strong>.cbr</strong>、<strong>.cb7</strong>、<strong>.fb2</strong>、<strong>.m4b</strong>、<strong>.mp3</strong>",
"supportedFormats": "",
"maxFileSize": "最大文件大小:每个文件 {{ size }}",
"fileTooLargeTooltip": "文件过大",
"uploadFailedTooltip": "上传失败",
+1
View File
@@ -23,6 +23,7 @@ html {
--book-type-m4b-color: #eab308;
--book-type-mp3-color: #84cc16;
--book-type-m4a-color: #f43f5e;
--book-type-opus-color: #06b6d4;
--book-type-physical-color: #8b5cf6;
}