added property for notes/hints

This commit is contained in:
Schnitzel5
2025-04-23 22:24:35 +02:00
parent fd74449c3e
commit a5dda204ff
2 changed files with 7 additions and 1 deletions

View File

@@ -12,7 +12,8 @@ const mangayomiSources = [{
"dateFormatLocale": "", "dateFormatLocale": "",
"pkgPath": "novel/src/en/novelupdates.js", "pkgPath": "novel/src/en/novelupdates.js",
"isNsfw": false, "isNsfw": false,
"hasCloudflare": true "hasCloudflare": true,
"notes": "This extension requires you to login to view the chapters!"
}]; }];
class DefaultExtension extends MProvider { class DefaultExtension extends MProvider {

View File

@@ -37,6 +37,8 @@ class Source {
int? sourceCodeLanguage; int? sourceCodeLanguage;
String? notes;
Source({ Source({
this.id = null, this.id = null,
this.name = "", this.name = "",
@@ -57,6 +59,7 @@ class Source {
this.appMinVerReq = "0.5.0", this.appMinVerReq = "0.5.0",
this.additionalParams = "", this.additionalParams = "",
this.sourceCodeLanguage = 0, this.sourceCodeLanguage = 0,
this.notes = "",
}); });
Source.fromJson(Map<String, dynamic> json) { Source.fromJson(Map<String, dynamic> json) {
final sourceCodeLang = json['sourceCodeLanguage'] ?? 0; final sourceCodeLang = json['sourceCodeLanguage'] ?? 0;
@@ -84,6 +87,7 @@ class Source {
version = json['version'] ?? ""; version = json['version'] ?? "";
additionalParams = json['additionalParams'] ?? ""; additionalParams = json['additionalParams'] ?? "";
sourceCodeLanguage = sourceCodeLang; sourceCodeLanguage = sourceCodeLang;
notes = json['notes'] ?? "";
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -107,6 +111,7 @@ class Source {
"appMinVerReq": appMinVerReq, "appMinVerReq": appMinVerReq,
"additionalParams": additionalParams, "additionalParams": additionalParams,
"sourceCodeLanguage": sourceCodeLanguage, "sourceCodeLanguage": sourceCodeLanguage,
"notes": notes,
}; };
} }
} }