fix: standardize bool parsing with flexibleBool helper

close #844
This commit is contained in:
edde746
2026-04-11 21:22:15 +02:00
parent b92842f9ac
commit 1b2ecd9de4
10 changed files with 192 additions and 53 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import '../utils/json_utils.dart';
import '../widgets/plex_optimized_image.dart' show kBlurArtwork, obfuscateText;
import 'plex_metadata.dart';
@@ -64,7 +65,7 @@ class PlexHub {
type: json['type'] as String? ?? 'hub',
hubIdentifier: json['hubIdentifier'] as String?,
size: (json['size'] as num?)?.toInt() ?? metadataList.length,
more: json['more'] == true || json['more'] == 1,
more: flexibleBool(json['more']),
items: metadataList,
);
}