Avoid attempts to renaming download dirs if name hasn't actually changed

Maybe fixes #9503
This commit is contained in:
arkon
2023-05-14 12:24:40 -04:00
parent a3a9c8ac8e
commit fb38d30775
3 changed files with 10 additions and 6 deletions

View File

@ -5,14 +5,14 @@ import tachiyomi.domain.source.model.StubSource
val sourceMapper: (eu.kanade.tachiyomi.source.Source) -> Source = { source ->
Source(
source.id,
source.lang,
source.name,
id = source.id,
lang = source.lang,
name = source.name,
supportsLatest = false,
isStub = false,
)
}
val sourceDataMapper: (Long, String, String) -> StubSource = { id, lang, name ->
StubSource(id, lang, name)
StubSource(id = id, lang = lang, name = name)
}