mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
fix subtitle
This commit is contained in:
@@ -850,6 +850,7 @@ let console = {
|
|||||||
* @param id {string}
|
* @param id {string}
|
||||||
* @param title {string}
|
* @param title {string}
|
||||||
* @param subtitle {string}
|
* @param subtitle {string}
|
||||||
|
* @param subTitle {string} - equal to subtitle
|
||||||
* @param cover {string}
|
* @param cover {string}
|
||||||
* @param tags {string[]}
|
* @param tags {string[]}
|
||||||
* @param description {string}
|
* @param description {string}
|
||||||
@@ -859,10 +860,11 @@ let console = {
|
|||||||
* @param stars {number?} - 0-5, double
|
* @param stars {number?} - 0-5, double
|
||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
function Comic({id, title, subtitle, cover, tags, description, maxPage, language, favoriteId, stars}) {
|
function Comic({id, title, subtitle, subTitle, cover, tags, description, maxPage, language, favoriteId, stars}) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.subtitle = subtitle;
|
this.subtitle = subtitle;
|
||||||
|
this.subTitle = subTitle;
|
||||||
this.cover = cover;
|
this.cover = cover;
|
||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
|
@@ -92,7 +92,7 @@ class Comic {
|
|||||||
|
|
||||||
Comic.fromJson(Map<String, dynamic> json, this.sourceKey)
|
Comic.fromJson(Map<String, dynamic> json, this.sourceKey)
|
||||||
: title = json["title"],
|
: title = json["title"],
|
||||||
subtitle = json["subtitle"] ?? "",
|
subtitle = json["subtitle"] ?? json["subTitle"] ?? "",
|
||||||
cover = json["cover"],
|
cover = json["cover"],
|
||||||
id = json["id"],
|
id = json["id"],
|
||||||
tags = List<String>.from(json["tags"] ?? []),
|
tags = List<String>.from(json["tags"] ?? []),
|
||||||
|
Reference in New Issue
Block a user