Support unzipped entry#305
Conversation
make Entry an abstract class
Before rendering it, the Mango reader should check the E-Tag of page or it renders wrong image when an image file is moved/removed/reordered
|
I found that there's a bug after rename a directory entry and scan. Fixed. |
|
Since I mentioned it in the linked issue, I guess this pr does not yet do anything in regards to not treat any 2nd+ level folder like a chapter? |
|
@tr7zw Hi! you mean that the |
|
Huh I guess never mind? I still had in mind that if you have a folder "Manga" and in that folder a folder "One Piece" with the chapters inside, I think in the past it treated the "Manga" folder as something containing Chapters. But apparently this was already fixed, now it shows Titles/Entries. |
|
Thanks @Leeingnyo! I fixed the linter warnings and took a quick look, and it looks good overall! I think it's a nice application of abstract classes. Re class names, yeah I think Also I think it makes more sense to break the classes into individual files, e.g., I will do a full review and some testings later this week 👍 |
|
Hey @Leeingnyo sorry for the delay. I made quite some changes to the PR. Can you take a quick look when you have the time to make sure I didn't accidentally fuck up anything? Thanks! |
|
@hkalexling sorry I pushed errors occurred version... wait for a moment |
9d9b551 to
9ce8e91
Compare
|
@hkalexling it looks great. I like the method that you did to recover entry instances :) |
|
Thanks @Leeingnyo! Sorry the comments above was just for my own reference and I accidentally published them ;-P
Could you elaborate a bit on this? I tried the following steps but didn't see the error.
|
|
Oh that's the difference. I built it from the because my ubuntu snap upgrades a Crystal implicitly, I use a Crystal 1.4.1... this would be a matter. :p |
|
Ah sorry my bad. It does happen on |
|
Thanks <3 |
Resolve #215
What I did
Entryclass to abstract class,DirectoryEntry, which treats unzipped images in a directory as an entryDirectoryEntrywhenTitle#newandTitle#examineare called.Result and test
Here is an test library environment.
In tree view,
Result
The directories appeared as entries and titles
What I tested
About class name
ZippedEntry -> ArchiveEntry
DirectoryEntry -> ?
I can't come up with good names...