基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
remove unused error toast
Prediditaaeae623cd83
diff --git a/lib/plugins/plugins.dart b/lib/plugins/plugins.dartindex 3bb5ed90..f6000ea2 100644--- a/lib/plugins/plugins.dart+++ b/lib/plugins/plugins.dart@@ -134,7 +134,7 @@ class Plugin {};resp = await Request().post(postUri.toString(),options: Options(headers: httpHeaders),- extra: {'customError': '规则检索错误: $name 响应不符合预期'},+ extra: {'customError': ''},data: queryParams,shouldRethrow: shouldRethrow);} else {@@ -144,7 +144,7 @@ class Plugin {resp = await Request().get(queryURL,options: Options(headers: httpHeaders),shouldRethrow: shouldRethrow,- extra: {'customError': '规则检索错误: $name 响应不符合预期'});+ extra: {'customError': ''});}var htmlString = resp.data.toString();diff --git a/lib/request/interceptor.dart b/lib/request/interceptor.dartindex 466d2b6f..3a54935a 100644--- a/lib/request/interceptor.dart+++ b/lib/request/interceptor.dart@@ -28,7 +28,7 @@ class ApiInterceptor extends Interceptor {@overridevoid onError(DioException err, ErrorInterceptorHandler handler) async {String url = err.requestOptions.uri.toString();- if (!url.contains('heartBeat')) {+ if (!url.contains('heartBeat') && err.requestOptions.extra['customError'] != '') {if (err.requestOptions.extra['customError'] == null) {KazumiDialog.showToast(message: await dioError(err),