fix(metadata-viewer): update file type handling to filter comic book formats as CBX (#2338)
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
+5
-1
@@ -594,7 +594,11 @@ export class MetadataViewerComponent implements OnInit, OnChanges {
|
|||||||
goToFileType(filePath: string | undefined): void {
|
goToFileType(filePath: string | undefined): void {
|
||||||
const fileType = this.getFileExtension(filePath);
|
const fileType = this.getFileExtension(filePath);
|
||||||
if (fileType) {
|
if (fileType) {
|
||||||
this.handleMetadataClick('bookType', fileType.toUpperCase());
|
let filterValue = fileType.toUpperCase();
|
||||||
|
if (['CBR', 'CBZ', 'CB7', 'CBT'].includes(filterValue)) {
|
||||||
|
filterValue = 'CBX';
|
||||||
|
}
|
||||||
|
this.handleMetadataClick('bookType', filterValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user