Skip to content

Commit

Permalink
updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Dec 1, 2024
1 parent eb7eba8 commit b5154b9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ android = "8.7.2"
android-core = "1.15.0"
android-sqlite = "2.4.0"
apollo = "4.0.0-beta.7"
atomicfu = "0.26.0"
atomicfu = "0.26.1"
blurhash = "0.3.0"
coil = "3.0.3"
coil = "3.0.4"
compose = "1.7.1"
coroutines = "1.9.0"
crashlytics-plugin = "3.0.2"
Expand All @@ -31,17 +31,17 @@ kmpalette = "3.1.0"
kodein = "7.22.0"
kolor = "2.0.0"
konfig = "0.15.2"
kotlin = "2.0.21"
kotlin = "2.1.0"
ksoup = "0.2.0"
ksp = "2.0.21-1.0.27"
ksp = "2.1.0-1.0.28"
ktor = "3.0.1"
ktorfit = "2.2.0"
media3 = "1.4.1"
media3 = "1.5.0"
moko-resources = "0.24.3"
multidex = "2.0.1"
nanoid = "1.0.1"
napier = "2.7.1"
oidc = "0.12.0-SNAPSHOT"
oidc = "0.12.0"
okhttp = "4.12.0"
osdetector = "1.7.3"
qrose = "1.0.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ data class Series(
val episodeNumber: String = BSUtil.episodeNumberRegex.find(fullTitle)?.groupValues?.lastOrNull() ?: number

@Transient
override val title: String = BSUtil.episodeNumberRegex.replaceFirst(fullTitle, String()).trim().ifBlank { fullTitle }
override val title: String = BSUtil.episodeNumberRegex.replaceFirst(fullTitle, "").trim().ifBlank { fullTitle }

@Transient
val convertedNumber: Int? = episodeNumber.toIntOrNull() ?: episodeNumber.getDigitsOrNull()?.toIntOrNull()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ abstract class SeriesData {
else -> {
val newTitles = mutableListOf<String>()
allTitles.forEach { str ->
val strFlatten = str.replace("\\s".toRegex(RegexOption.MULTILINE), String()).trim()
val strFlatten = str.replace("\\s".toRegex(RegexOption.MULTILINE), "").trim()

if (newTitles.none {
JaroWinkler.distance(str, it) > 0.95 || run {
val itFlatten = it.replace("\\s".toRegex(RegexOption.MULTILINE), String()).trim()
val itFlatten = it.replace("\\s".toRegex(RegexOption.MULTILINE), "").trim()

JaroWinkler.distance(strFlatten, itFlatten) > 0.95
}
Expand Down

0 comments on commit b5154b9

Please sign in to comment.