initial support for portobuf backup

This commit is contained in:
Aria Moradi
2021-08-19 00:46:45 +04:30
parent e2db191f70
commit d3d53d1a4e
7 changed files with 166 additions and 18 deletions

View File

@@ -61,3 +61,31 @@ interface SManga : Serializable {
}
}
}
//fun SManga.toMangaInfo(): MangaInfo {
// return MangaInfo(
// key = this.url,
// title = this.title,
// artist = this.artist ?: "",
// author = this.author ?: "",
// description = this.description ?: "",
// genres = this.genre?.split(", ") ?: emptyList(),
// status = this.status,
// cover = this.thumbnail_url ?: ""
// )
//}
//
//fun MangaInfo.toSManga(): SManga {
// val mangaInfo = this
// return SManga.create().apply {
// url = mangaInfo.key
// title = mangaInfo.title
// artist = mangaInfo.artist
// author = mangaInfo.author
// description = mangaInfo.description
// genre = mangaInfo.genres.joinToString(", ")
// status = mangaInfo.status
// thumbnail_url = mangaInfo.cover
// }
//}