opt search

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-21 17:55:25 +08:00
parent 571bdb5eae
commit ee142e5e1d
2 changed files with 1 additions and 9 deletions

View File

@@ -57,8 +57,7 @@ class SearchVideoData extends SearchNumData<SearchVideoItemModel> {
SearchVideoData.fromJson(Map<String, dynamic> json) {
numResults = (json['numResults'] as num?)?.toInt();
list = (json['result'] as List?)
?.where((e) => e['available'] == true)
.map<SearchVideoItemModel>((e) => SearchVideoItemModel.fromJson(e))
?.map<SearchVideoItemModel>((e) => SearchVideoItemModel.fromJson(e))
.toList();
}
}