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