mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-11 17:25:32 +00:00
small bug fix
This commit is contained in:
parent
9278b6f8af
commit
42c3f87811
2 changed files with 4 additions and 7 deletions
|
|
@ -199,7 +199,6 @@ class _SubtitlesWidgetSearchState extends ConsumerState<SubtitlesWidgetSearch> {
|
|||
}
|
||||
} catch (e) {
|
||||
_errorMsg = e.toString();
|
||||
rethrow;
|
||||
}
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ Future<List<ImdbEpisode>?> fetchImdbEpisodes(String imdbId) async {
|
|||
?.map((e) => ImdbEpisode.fromJson(e))
|
||||
.toList();
|
||||
} catch (_) {
|
||||
rethrow;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -63,7 +62,6 @@ Future<List<ImdbSubtitle>?> fetchImdbSubtitles(String imdbId) async {
|
|||
.where((e) => e.url != null)
|
||||
.toList();
|
||||
} catch (_) {
|
||||
rethrow;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -100,10 +98,10 @@ class ImdbTitle {
|
|||
primaryImage: json["primaryImage"]?["url"],
|
||||
startYear: json["startYear"],
|
||||
endYear: json["endYear"],
|
||||
aggregateRating: json["aggregateRating"] is int
|
||||
? (json["aggregateRating"] as int).toDouble()
|
||||
: json["aggregateRating"],
|
||||
voteCount: json["voteCount"],
|
||||
aggregateRating: json["rating"]?["aggregateRating"] is int
|
||||
? (json["rating"]?["aggregateRating"] as int).toDouble()
|
||||
: json["rating"]?["aggregateRating"],
|
||||
voteCount: json["rating"]?["voteCount"],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue