Jays2Kings / tachiyomiJ2K

Free and open source manga reader for Android
Apache License 2.0
4.64k stars 224 forks source link

Local epub files don't show book title/chapter number #1708

Closed LadyHaywood closed 4 days ago

LadyHaywood commented 9 months ago

Steps to reproduce

  1. Move epub file to j2k's local folder
  2. open local source
  3. open manga

Expected behavior

Epub file should show the book title, chapter number, or file name

Actual behavior

Epub shows up with a blank space and stays at the bottom of the chapter list

Crash logs

There is no crash log as nothing crashed

TachiyomiJ2K version

1.7.3

Android version

Android 11

Device

Onyx Boox Nova5

Other details

Epub files won't display correctly as they do in the normal app. They'll open just fine, but in the regular tachiyomi app the book title and chapter number shows as it should but it doesn't on j2k. I thought about just moving to the normal app but because of the device I'm using I need ch.1, the cover, and detail file in j2k's folder while the rest of the chapters are in the tachiyomi folder (as far as I know anyway).

epub file in tachiyomi app shows up as chapter 1 Screenshot_20240105-012622

epub file in j2k doesn't show anything and stays at the bottom Screenshot_20240105-013041

Acknowledgements

LadyHaywood commented 4 days ago

Figured out the problem and it's basically how Tachi/Mihon reads the metadata of epubs. It's a similar problem if your epub has numbers in it's file name. The epub title can't be the same as the name in the json file. Changing the capitalization, adding a period at the end. or just adding new stuff/chaning it completely in the json file fixes it.

Though it didn't bring it up, numbers in the file name also messes with how chapeters are seen. If you put the chapter number before the actual chapter number (something like changing "Vol.2 Ch.1" to "Ch.1 Vol.2 Ch.1") then it will read the "ch.1" first and see it as chapter 1.