lint file

This commit is contained in:
Aria Moradi 2021-05-20 13:50:10 +04:30
parent 7e7e069244
commit fa8e0478da

View File

@ -52,9 +52,9 @@ object Page {
val pageEntry = transaction { PageTable.select { (PageTable.chapter eq chapterId) and (PageTable.index eq index) }.first() } val pageEntry = transaction { PageTable.select { (PageTable.chapter eq chapterId) and (PageTable.index eq index) }.first() }
val tachiPage = Page( val tachiPage = Page(
pageEntry[PageTable.index], pageEntry[PageTable.index],
pageEntry[PageTable.url], pageEntry[PageTable.url],
pageEntry[PageTable.imageUrl] pageEntry[PageTable.imageUrl]
) )
if (pageEntry[PageTable.imageUrl] == null) { if (pageEntry[PageTable.imageUrl] == null) {
@ -84,10 +84,10 @@ object Page {
val sourceDir = source.toString() val sourceDir = source.toString()
val mangaDir = SafePath.buildValidFilename(mangaEntry[MangaTable.title]) val mangaDir = SafePath.buildValidFilename(mangaEntry[MangaTable.title])
val chapterDir = SafePath.buildValidFilename( val chapterDir = SafePath.buildValidFilename(
when { when {
chapterEntry[ChapterTable.scanlator] != null -> "${chapterEntry[ChapterTable.scanlator]}_${chapterEntry[ChapterTable.name]}" chapterEntry[ChapterTable.scanlator] != null -> "${chapterEntry[ChapterTable.scanlator]}_${chapterEntry[ChapterTable.name]}"
else -> chapterEntry[ChapterTable.name] else -> chapterEntry[ChapterTable.name]
} }
) )
return "${applicationDirs.mangaRoot}/$sourceDir/$mangaDir/$chapterDir" return "${applicationDirs.mangaRoot}/$sourceDir/$mangaDir/$chapterDir"