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

Maybe fixes #9503

(cherry picked from commit fb38d307750a849e7c941c164a3c223d69f2cd14)
This commit is contained in:
arkon
2023-05-14 12:24:40 -04:00
committed by Jobobby04
parent f37b661307
commit ac9048db46
3 changed files with 10 additions and 6 deletions
@@ -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)
}