diff --git a/komga-webui/src/functions/urls.ts b/komga-webui/src/functions/urls.ts index 12af65bb4..2a2b38473 100644 --- a/komga-webui/src/functions/urls.ts +++ b/komga-webui/src/functions/urls.ts @@ -75,7 +75,7 @@ export function transientBookPageUrl(transientBookId: string, page: number): str } export function pageHashUnknownThumbnailUrl(pageHash: PageHashUnknownDto, resize?: number): string { - let url = `${urls.originNoSlash}/api/v1/page-hashes/unknown/${pageHash.hash}/thumbnail?media_type=${pageHash.mediaType}&size=${pageHash.sizeBytes || -1}` + let url = `${urls.originNoSlash}/api/v1/page-hashes/unknown/${pageHash.hash}/thumbnail?media_type=${pageHash.mediaType}&file_size=${pageHash.sizeBytes || -1}` if(resize) { url += `&resize=${resize}` } diff --git a/komga-webui/src/services/komga-pagehashes.service.ts b/komga-webui/src/services/komga-pagehashes.service.ts index 728a5185b..aadfd06a6 100644 --- a/komga-webui/src/services/komga-pagehashes.service.ts +++ b/komga-webui/src/services/komga-pagehashes.service.ts @@ -32,7 +32,7 @@ export default class KomgaPageHashesService { const params = { ...pageRequest, media_type: hash.mediaType, - size: hash.sizeBytes || -1, + file_size: hash.sizeBytes || -1, } return (await this.http.get(`${API_PAGE_HASH}/unknown/${hash.hash}`, { params: params, diff --git a/komga-webui/src/views/SettingsDuplicatePages.vue b/komga-webui/src/views/SettingsDuplicatePages.vue index d55bba4e3..72c97631e 100644 --- a/komga-webui/src/views/SettingsDuplicatePages.vue +++ b/komga-webui/src/views/SettingsDuplicatePages.vue @@ -168,7 +168,7 @@ export default Vue.extend({ sortOptions(): SortOption[] { return [ {name: this.$t('duplicate_pages.filter.total_size').toString(), key: 'totalSize'}, - {name: this.$t('duplicate_pages.filter.size').toString(), key: 'size'}, + {name: this.$t('duplicate_pages.filter.size').toString(), key: 'fileSize'}, {name: this.$t('duplicate_pages.filter.count').toString(), key: 'matchCount'}, ] }, diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/PageHashDao.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/PageHashDao.kt index 43f3e8582..8b05eff3e 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/PageHashDao.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/PageHashDao.kt @@ -26,7 +26,7 @@ class PageHashDao( private val sorts = mapOf( "hash" to p.FILE_HASH, "mediatype" to p.MEDIA_TYPE, - "size" to p.FILE_SIZE, + "fileSize" to p.FILE_SIZE, "matchCount" to DSL.field("count"), "totalSize" to DSL.field("totalSize"), "url" to b.URL, diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/PageHashController.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/PageHashController.kt index 96302087b..4c11596b9 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/PageHashController.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/PageHashController.kt @@ -63,7 +63,7 @@ class PageHashController( fun getUnknownPageHashMatches( @PathVariable pageHash: String, @RequestParam("media_type") mediaType: String, - @RequestParam("size") size: Long, + @RequestParam("file_size") size: Long, @Parameter(hidden = true) page: Pageable, ): Page = pageHashRepository.findMatchesByHash( @@ -80,7 +80,7 @@ class PageHashController( fun getUnknownPageHashThumbnail( @PathVariable pageHash: String, @RequestParam("media_type") mediaType: String, - @RequestParam("size") size: Long, + @RequestParam("file_size") size: Long, @RequestParam("resize") resize: Int? = null, ): ResponseEntity = pageHashLifecycle.getPage(