iYomu
iYomu copied to clipboard
Download for offline reading
Hi, great library :)
I was wondering how we could implement storing the chapter list for each manga, and then downloading the pages/images for selected chapters for offline reading.
I've not used Realm before, so it's kind of confusing. I've tried implementing similar code as when saving a manga into the database but there are problems...
Thanks!
@VrasidasP Hi sorry for late response, I think there are serveral things that need to be implemented:
- [Database] Add a some kind of "flag" column on chapter table (realm)
- [UI] Add toggle to download individual chapter
- [UI] Add toggle to download chapters (per-manga)
I think the directory / file naming should be
<manga-id>-<manga-slug>/<chapter-number>/<page-number>.jpg
For example
12345-shingeki-no-kyojin/1/1.jpg // Shingeki no kyojin chapter 1 page 1
12345-shingeki-no-kyojin/1/2.jpg // Shingeki no kyojin chapter 1 page 2
.... And so on
I'll take a look at it this weekend and see what I can do :beers: