1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-09-24 05:29:33 +02:00

Bugfix. Sharing images with very long name ()

* Fix sharing with very long images name

* Fix dropLast to take
This commit is contained in:
Pavka
2019-05-07 12:06:38 +03:00
committed by inorichi
parent 5c1770247c
commit 003dca9d45

@@ -434,7 +434,8 @@ class ReaderPresenter(
// Build destination file. // Build destination file.
val filename = DiskUtil.buildValidFilename( val filename = DiskUtil.buildValidFilename(
"${manga.title} - ${chapter.name}") + " - ${page.number}.${type.extension}" "${manga.title} - ${chapter.name}".take(225)
) + " - ${page.number}.${type.extension}"
val destFile = File(directory, filename) val destFile = File(directory, filename)
stream().use { input -> stream().use { input ->