mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Populate the ComicInfo Number field with chapter numbers (#9514)
* Populate the ComicInfo Number field * added negative number check
This commit is contained in:
		| @@ -98,6 +98,7 @@ fun Manga.hasCustomCover(coverCache: CoverCache = Injekt.get()): Boolean { | ||||
| fun getComicInfo(manga: Manga, chapter: Chapter, chapterUrl: String) = ComicInfo( | ||||
|     title = ComicInfo.Title(chapter.name), | ||||
|     series = ComicInfo.Series(manga.title), | ||||
|     number = chapter.chapterNumber.takeIf { it >= 0 }?.let { ComicInfo.Number(it.toString()) }, | ||||
|     web = ComicInfo.Web(chapterUrl), | ||||
|     summary = manga.description?.let { ComicInfo.Summary(it) }, | ||||
|     writer = manga.author?.let { ComicInfo.Writer(it) }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user