From e773c7f34d97bdca7d7b254723ab110712321a38 Mon Sep 17 00:00:00 2001 From: perol Date: Wed, 2 Oct 2024 15:20:30 +0800 Subject: [PATCH] sauce nao --- lib/page/network/network_page.dart | 1 + lib/page/saucenao/sauce_notifier.dart | 2 +- lib/page/saucenao/sauce_store.dart | 2 +- lib/page/webview/saucenao_webview_page.dart | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/page/network/network_page.dart b/lib/page/network/network_page.dart index 040db8653..3469315f5 100644 --- a/lib/page/network/network_page.dart +++ b/lib/page/network/network_page.dart @@ -185,6 +185,7 @@ class _NetworkPageState extends State { _textEditingController.text .trim() .contains(" ")) { + //TODO ScaffoldMessenger.of(context) .showSnackBar(SnackBar( content: Text("illegal"), diff --git a/lib/page/saucenao/sauce_notifier.dart b/lib/page/saucenao/sauce_notifier.dart index 20448fcb0..c612c6ded 100644 --- a/lib/page/saucenao/sauce_notifier.dart +++ b/lib/page/saucenao/sauce_notifier.dart @@ -36,7 +36,7 @@ class SauceState with _$SauceState { class Sauce extends _$Sauce { static String host = "saucenao.com"; Dio dio = Dio(BaseOptions( - baseUrl: "https://45.32.0.237", headers: {HttpHeaders.hostHeader: host})); + baseUrl: "https://saucenao.com", headers: {HttpHeaders.hostHeader: host})); List results = []; late StreamController _streamController; late ObservableStream observableStream; diff --git a/lib/page/saucenao/sauce_store.dart b/lib/page/saucenao/sauce_store.dart index 4103bc614..22fa8677e 100644 --- a/lib/page/saucenao/sauce_store.dart +++ b/lib/page/saucenao/sauce_store.dart @@ -42,7 +42,7 @@ class SauceStore = SauceStoreBase with _$SauceStore; abstract class SauceStoreBase with Store { static String host = "saucenao.com"; Dio dio = Dio(BaseOptions( - baseUrl: "https://45.32.0.237", headers: {HttpHeaders.hostHeader: host})); + baseUrl: "https://saucenao.com", headers: {HttpHeaders.hostHeader: host})); ObservableList results = ObservableList(); late StreamController _streamController; late ObservableStream observableStream; diff --git a/lib/page/webview/saucenao_webview_page.dart b/lib/page/webview/saucenao_webview_page.dart index 302b81e72..05b35447b 100644 --- a/lib/page/webview/saucenao_webview_page.dart +++ b/lib/page/webview/saucenao_webview_page.dart @@ -88,7 +88,7 @@ class _SauncenaoWebviewState extends State { if (request.url.path == "/search.php") { String host = "saucenao.com"; Dio dio = Dio(BaseOptions( - baseUrl: "https://45.32.0.237", + baseUrl: "https://saucenao.com", headers: {HttpHeaders.hostHeader: host})); if (userSetting.disableBypassSni) { dio.options.baseUrl = "https://$host";