mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 03:09:19 +01:00
Set source id when inserting to db (#8300)
This commit is contained in:
parent
1704dc062d
commit
187e9f94aa
@ -11,7 +11,7 @@ class NetworkToLocalManga(
|
|||||||
val localManga = getManga(manga.url, sourceId)
|
val localManga = getManga(manga.url, sourceId)
|
||||||
return when {
|
return when {
|
||||||
localManga == null -> {
|
localManga == null -> {
|
||||||
val id = insertManga(manga)
|
val id = insertManga(manga.copy(source = sourceId))
|
||||||
manga.copy(id = id!!)
|
manga.copy(id = id!!)
|
||||||
}
|
}
|
||||||
!localManga.favorite -> {
|
!localManga.favorite -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user