Jays2Kings / tachiyomiJ2K

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

Comic title too long , download failure #1798

Open anonymous-gy opened 6 months ago

anonymous-gy commented 6 months ago

Steps to reproduce

Some comic has too many chars in name, which (i think) lead to a problem while using path, and make download failure.

Expected behavior

using extension 'Jinman Tiantang' (禁漫天堂 in chinese), try to download因为过去一起修行剑术的青梅竹马变成了奴隶所以身为S级冒险者的我决定买下并守护她 [笹塔五郎] 一緒に剣の修行をした幼馴染が奴隷になっていたので、Sランク冒険者の僕は彼女を買って守ることにした (96 chinese char, or maybe 192 char in path)

Actual behavior

The first chapter(no matter which one, just the first chapter download in time) is fine, but the rest can't be download and error is 'invalid download location' If I delete the download file in system and it can be download another chapter, but just one can be download, the next download still fail.

Crash logs

No response

TachiyomiJ2K version

1.7.4

Android version

14

Device

Xiaomi Pad 6 (also in Redmi K20pro and some simulator in PC)

Other details

I try to rename the comic in J2K local, but the download file still using the website name which is too long and leading download failure.

The problem is only in Jinmantiantang for now, the website use the name both with Chinese and Japnese. but jap novel like long title, maybe it will show in some other comic.

Acknowledgements

anonymous-gy commented 6 months ago

well... it seems chinese char should x3 so it takes 288 in path