Fix: Thumbnail not updating in metadata picker
This commit is contained in:
committed by
Aditya Chandel
parent
640409e92f
commit
8d09430043
-4
@@ -131,9 +131,6 @@ public class BookMetadataEntity {
|
||||
@Column(name = "page_count_locked")
|
||||
private Boolean pageCountLocked = Boolean.FALSE;
|
||||
|
||||
@Column(name = "thumbnail_locked")
|
||||
private Boolean thumbnailLocked = Boolean.FALSE;
|
||||
|
||||
@Column(name = "language_locked")
|
||||
private Boolean languageLocked = Boolean.FALSE;
|
||||
|
||||
@@ -215,7 +212,6 @@ public class BookMetadataEntity {
|
||||
this.isbn10Locked = lock;
|
||||
this.asinLocked = lock;
|
||||
this.pageCountLocked = lock;
|
||||
this.thumbnailLocked = lock;
|
||||
this.languageLocked = lock;
|
||||
this.coverLocked = lock;
|
||||
this.seriesNameLocked = lock;
|
||||
|
||||
+1
-1
@@ -157,7 +157,7 @@ public class BookMetadataUpdater {
|
||||
}
|
||||
|
||||
private void updateThumbnailIfNeeded(long bookId, BookMetadata newMetadata, BookMetadataEntity metadata, boolean setThumbnail) {
|
||||
if (setThumbnail && shouldUpdateField(metadata.getThumbnailLocked(), newMetadata.getThumbnailUrl()) && !newMetadata.getThumbnailUrl().isEmpty()) {
|
||||
if (setThumbnail && shouldUpdateField(metadata.getCoverLocked(), newMetadata.getThumbnailUrl()) && !newMetadata.getThumbnailUrl().isEmpty()) {
|
||||
String thumbnailPath = null;
|
||||
try {
|
||||
thumbnailPath = fileService.createThumbnail(bookId, newMetadata.getThumbnailUrl());
|
||||
|
||||
Reference in New Issue
Block a user