-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read metadata from ComicInfo.xml files in Local source (#8025)
Co-authored-by: Shamicen <84282253+Shamicen@users.noreply.github.com> Co-authored-by: Andreas <andreas.everos@gmail.com> Co-authored-by: jobobby04 <jobobby04@users.noreply.github.com>
- Loading branch information
1 parent
30b3b2d
commit 1395343
Showing
5 changed files
with
200 additions
and
17 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
app/src/main/java/eu/kanade/domain/manga/model/ComicInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package eu.kanade.domain.manga.model | ||
|
||
import kotlinx.serialization.Serializable | ||
import nl.adaptivity.xmlutil.serialization.XmlSerialName | ||
import nl.adaptivity.xmlutil.serialization.XmlValue | ||
|
||
@Serializable | ||
@XmlSerialName("ComicInfo", "", "") | ||
data class ComicInfo( | ||
val series: ComicInfoSeries?, | ||
val summary: ComicInfoSummary?, | ||
val writer: ComicInfoWriter?, | ||
val penciller: ComicInfoPenciller?, | ||
val inker: ComicInfoInker?, | ||
val colorist: ComicInfoColorist?, | ||
val letterer: ComicInfoLetterer?, | ||
val coverArtist: ComicInfoCoverArtist?, | ||
val genre: ComicInfoGenre?, | ||
val tags: ComicInfoTags?, | ||
) | ||
|
||
@Serializable | ||
@XmlSerialName("Series", "", "") | ||
data class ComicInfoSeries(@XmlValue(true) val value: String = "") | ||
|
||
@Serializable | ||
@XmlSerialName("Summary", "", "") | ||
data class ComicInfoSummary(@XmlValue(true) val value: String = "") | ||
|
||
@Serializable | ||
@XmlSerialName("Writer", "", "") | ||
data class ComicInfoWriter(@XmlValue(true) val value: String = "") | ||
|
||
@Serializable | ||
@XmlSerialName("Penciller", "", "") | ||
data class ComicInfoPenciller(@XmlValue(true) val value: String = "") | ||
|
||
@Serializable | ||
@XmlSerialName("Inker", "", "") | ||
data class ComicInfoInker(@XmlValue(true) val value: String = "") | ||
|
||
@Serializable | ||
@XmlSerialName("Colorist", "", "") | ||
data class ComicInfoColorist(@XmlValue(true) val value: String = "") | ||
|
||
@Serializable | ||
@XmlSerialName("Letterer", "", "") | ||
data class ComicInfoLetterer(@XmlValue(true) val value: String = "") | ||
|
||
@Serializable | ||
@XmlSerialName("CoverArtist", "", "") | ||
data class ComicInfoCoverArtist(@XmlValue(true) val value: String = "") | ||
|
||
@Serializable | ||
@XmlSerialName("Genre", "", "") | ||
data class ComicInfoGenre(@XmlValue(true) val value: String = "") | ||
|
||
@Serializable | ||
@XmlSerialName("Tags", "", "") | ||
data class ComicInfoTags(@XmlValue(true) val value: String = "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters