diff --git a/lib/component/hentai.dart b/lib/component/hentai.dart index 891007bf7..ba1a133bb 100644 --- a/lib/component/hentai.dart +++ b/lib/component/hentai.dart @@ -444,7 +444,8 @@ class HentaiManager { : 'n/a', 'Groups': element.descripts!['group'] != null ? element.descripts!['group']!.join('|') - : null, + : 'n/a', + // ignore: prefer_null_aware_operators 'Characters': element.descripts!['character'] != null ? element.descripts!['character']!.join('|') : null, diff --git a/lib/component/hentai_download_manager.dart b/lib/component/hentai_download_manager.dart index cc898ac15..b4a892b41 100644 --- a/lib/component/hentai_download_manager.dart +++ b/lib/component/hentai_download_manager.dart @@ -97,11 +97,11 @@ class HentaiDonwloadManager { : target.groups() != null ? target.groups().split('|').firstWhere((group) => group != null && (group as String).isNotEmpty) - : null, + : 'n/a', group: target.groups() != null ? target.groups().split('|').firstWhere( (group) => group != null && (group as String).isNotEmpty) - : null, + : 'n/a', extension: page.contains('fullimg.php') ? 'jpg' : path.extension(page.split('/').last).replaceAll('.', ''),