fix: some sorting problems

This commit is contained in:
rebelonion 2024-04-21 06:41:51 -05:00
parent 6113a10556
commit 513b937e59
3 changed files with 10 additions and 15 deletions

View file

@ -70,7 +70,7 @@ object MediaNameAdapter {
return if (seasonMatcher.find()) {
seasonMatcher.group(2)?.toInt()
} else {
null
text.toIntOrNull()
}
}
@ -93,7 +93,7 @@ object MediaNameAdapter {
}
}
} else {
null
text.toFloatOrNull()
}
}
@ -139,7 +139,7 @@ object MediaNameAdapter {
if (failedChapterNumberMatcher.find()) {
failedChapterNumberMatcher.group(1)?.toFloat()
} else {
null
text.toFloatOrNull()
}
}
}