Display full file path in metadata viewer

This commit is contained in:
adityachandelgit
2025-04-09 19:16:57 -06:00
committed by Aditya Chandel
parent 87f40733d7
commit 51df32415e
7 changed files with 16 additions and 8 deletions
@@ -14,6 +14,7 @@ public class Book {
private BookFileType bookType;
private Long libraryId;
private String fileName;
private String filePath;
private String title;
private Instant lastReadTime;
private Instant addedOn;
@@ -121,6 +121,7 @@ public class BooksService {
book.setLastReadTime(userProgress.getLastReadTime());
book.setPdfProgress(userProgress.getPdfProgress());
book.setEpubProgress(userProgress.getEpubProgress());
book.setFilePath(bookEntity.getLibraryPath().getPath() + "/" + bookEntity.getFileSubPath() + "/" + bookEntity.getFileName());
if (!withDescription) {
book.getMetadata().setDescription(null);
}