mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
fix: archiver_key not obtained from eh api
This commit is contained in:
@@ -28,7 +28,7 @@ class GalleryMetadataSingle {
|
|||||||
const GalleryMetadataSingle({
|
const GalleryMetadataSingle({
|
||||||
required this.gid,
|
required this.gid,
|
||||||
required this.token,
|
required this.token,
|
||||||
required this.archiverKey,
|
this.archiverKey,
|
||||||
required this.title,
|
required this.title,
|
||||||
required this.titleJpn,
|
required this.titleJpn,
|
||||||
required this.category,
|
required this.category,
|
||||||
@@ -50,7 +50,7 @@ class GalleryMetadataSingle {
|
|||||||
final int gid;
|
final int gid;
|
||||||
final String token;
|
final String token;
|
||||||
@JsonKey(name: 'archiver_key')
|
@JsonKey(name: 'archiver_key')
|
||||||
final String archiverKey;
|
final String? archiverKey;
|
||||||
final String title;
|
final String title;
|
||||||
@JsonKey(name: 'title_jpn')
|
@JsonKey(name: 'title_jpn')
|
||||||
final String titleJpn;
|
final String titleJpn;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ GalleryMetadataSingle _$GalleryMetadataSingleFromJson(
|
|||||||
GalleryMetadataSingle(
|
GalleryMetadataSingle(
|
||||||
gid: (json['gid'] as num).toInt(),
|
gid: (json['gid'] as num).toInt(),
|
||||||
token: json['token'] as String,
|
token: json['token'] as String,
|
||||||
archiverKey: json['archiver_key'] as String,
|
archiverKey: json['archiver_key'] as String?,
|
||||||
title: json['title'] as String,
|
title: json['title'] as String,
|
||||||
titleJpn: json['title_jpn'] as String,
|
titleJpn: json['title_jpn'] as String,
|
||||||
category: json['category'] as String,
|
category: json['category'] as String,
|
||||||
|
|||||||
Reference in New Issue
Block a user