Fix/komga api improvements#2524
Conversation
|
@farfromrefug Hi, thanks for the PR! I’m a bit busy right now and don’t have time to test the full flow. Would you be able to coordinate with some testers to confirm that everything works as it should? Thanks. |
|
@CORAAL @stefanop1 would it be possible fo you guys to test that PR ? |
Of course, no problem. |
|
I ran the test on 3 applications:
From Booklore, I enabled OPDS and the Komga API, then configured an OPDS user. I used four different works: three in CBZ format and one in CBR format. Each book was stored in a single library. Connection
Note Each work from the library appears.
Warning The Komelia application returns an error after about one minute:
ReadingKoma
Komikku
Komelia ❌
Komelia with Manga1.cbr and Webtoon1.cbz returns the same error: |
|
@CORAAL awesome tests! Also it may appear like Komelia works but if you go into a "series" you won't see the correct books. This is because Komelia use that complex POST API that i did not ported. Not sure it is worth the effort. About the errors, it is true i only work with CBZ having a ComicInfo.xml. This is an issue with booklore where pageCount is not computed if not part of ComicInfo.xml. Thus it will make all the clients fails. @acx10 any thought about this? |
|
@farfromrefug |
|
need some test? |
|
@beudbeud not yet. The tricky part is the merging. Too many things have changed in the repo. Getting tricky to follow. |
…provements # Conflicts: # booklore-api/src/main/java/com/adityachandel/booklore/config/WebMvcConfig.java # booklore-api/src/main/java/org/booklore/config/KomgaCleanBeanPropertyWriter.java # booklore-api/src/main/java/org/booklore/config/security/SecurityConfig.java # booklore-api/src/main/java/org/booklore/controller/KomgaController.java # booklore-api/src/main/java/org/booklore/mapper/komga/KomgaMapper.java # booklore-api/src/main/java/org/booklore/service/appsettings/AppSettingService.java # booklore-api/src/main/java/org/booklore/service/komga/KomgaService.java # booklore-api/src/test/java/org/booklore/service/komga/KomgaServiceTest.java
|
@acx10 i have updated my PR but i have some issues after that. in KomgaService, metadata is always null. It was working before i merged from develop. |
@farfromrefug Could this be a hibernate issue? Do you see anything suspicious in the backend logs? |
|
@acx10 no i dont see anything "special" in the logs. |
🚀 Pull Request
📝 Description
This PR improves the Komga API for use with Mihon/Komikku/Koma/Komelia
That PR has no sideeffect in the rest of booklore
🛠️ Changes Implemented
Komelia is not yet fully working because it relies on a complex POST API to request from the db with the
conditionparameter here https://komga.org/docs/openapi/get-series.Implementing would be pretty complex. We could directly copy the code from Komga but i am not sure this is something we want
🧪 Testing Strategy
📸 Visual Changes (if applicable)
Please Read - This Checklist is Mandatory
Mandatory Requirements (please check ALL boxes):
developbranch (please resolve any merge conflicts)./gradlew testfor Spring Boot backend, andng testfor Angular frontend - NO EXCEPTIONS)Why This Matters:
Recent production incidents have been traced back to:
Backend changes without tests will not be accepted. By completing this checklist thoroughly, you're helping maintain the quality and stability of Booklore for all users.
Note to Reviewers: Please verify the checklist is complete before beginning your review. If items are unchecked, kindly ask the contributor to complete them first.
💬 Additional Context (optional)