otakudesu: Change 1.tofloat to 1F

This commit is contained in:
Moon Light「つかり」
2021-10-06 04:07:49 +07:00
committed by GitHub
parent 4f9e2c0454
commit 261a9ee02c
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'OtakuDesu'
pkgNameSuffix = 'id.otakudesu'
extClass = '.OtakuDesu'
extVersionCode = 4
extVersionCode = 5
libVersion = '12'
}

View File

@ -80,7 +80,7 @@ class OtakuDesu : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
episode.setUrlWithoutDomain(element.select("span > a").attr("href"))
episode.episode_number = when {
(epsNum.isNotEmpty()) -> epsNum.toFloat()
else -> "1".toFloat()
else -> 1F
}
episode.name = element.select("span > a").text()
episode.date_upload = reconstructDate(element.select("span.zeebr").text())