mirror of
https://github.com/null2264/yokai.git
synced 2025-07-17 22:36:55 +00:00
fix: Target SManga
This commit is contained in:
parent
8a11510296
commit
36bd9cb292
1 changed files with 19 additions and 17 deletions
|
@ -51,28 +51,30 @@ interface Manga : SManga {
|
||||||
get() = author == artist || artist.isNullOrBlank() ||
|
get() = author == artist || artist.isNullOrBlank() ||
|
||||||
author?.contains(artist ?: "", true) == true
|
author?.contains(artist ?: "", true) == true
|
||||||
|
|
||||||
fun copyFrom(other: Manga) {
|
fun copyFrom(other: SManga) {
|
||||||
if (other.author != null) {
|
if (other is Manga) {
|
||||||
author = other.originalAuthor
|
if (other.author != null) {
|
||||||
}
|
author = other.originalAuthor
|
||||||
|
}
|
||||||
|
|
||||||
if (other.artist != null) {
|
if (other.artist != null) {
|
||||||
artist = other.originalArtist
|
artist = other.originalArtist
|
||||||
}
|
}
|
||||||
|
|
||||||
if (other.description != null) {
|
if (other.description != null) {
|
||||||
description = other.originalDescription
|
description = other.originalDescription
|
||||||
}
|
}
|
||||||
|
|
||||||
if (other.genre != null) {
|
if (other.genre != null) {
|
||||||
genre = other.originalGenre
|
genre = other.originalGenre
|
||||||
}
|
}
|
||||||
|
|
||||||
if (other.thumbnail_url != null) {
|
if (other.thumbnail_url != null) {
|
||||||
thumbnail_url = other.thumbnail_url
|
thumbnail_url = other.thumbnail_url
|
||||||
}
|
}
|
||||||
|
|
||||||
status = other.originalStatus
|
status = other.originalStatus
|
||||||
|
}
|
||||||
|
|
||||||
update_strategy = other.update_strategy
|
update_strategy = other.update_strategy
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue