mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2025-02-28 22:43:38 +01:00
Truncate manga description if it's too long (#63)
* Manga description changed from 4096 to 8192 * Check that the description of a manga is not longer than 4096, trim otherwise * Revert description length changes
This commit is contained in:
parent
6fb6a251e7
commit
449d12779a
@ -66,7 +66,7 @@ object Manga {
|
||||
|
||||
it[MangaTable.artist] = fetchedManga.artist
|
||||
it[MangaTable.author] = fetchedManga.author
|
||||
it[MangaTable.description] = fetchedManga.description
|
||||
it[MangaTable.description] = if (fetchedManga.description?.length ?: 0 > 4096) fetchedManga.description?.substring(0, 4096) else fetchedManga.description
|
||||
it[MangaTable.genre] = fetchedManga.genre
|
||||
it[MangaTable.status] = fetchedManga.status
|
||||
if (fetchedManga.thumbnail_url != null && fetchedManga.thumbnail_url!!.isNotEmpty())
|
||||
|
Loading…
x
Reference in New Issue
Block a user