Skip to content

Commit

Permalink
sauce nao
Browse files Browse the repository at this point in the history
  • Loading branch information
Notsfsssf committed Oct 2, 2024
1 parent 8486139 commit e773c7f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/page/network/network_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ class _NetworkPageState extends State<NetworkPage> {
_textEditingController.text
.trim()
.contains(" ")) {
//TODO
ScaffoldMessenger.of(context)
.showSnackBar(SnackBar(
content: Text("illegal"),
Expand Down
2 changes: 1 addition & 1 deletion lib/page/saucenao/sauce_notifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<int> results = [];
late StreamController _streamController;
late ObservableStream observableStream;
Expand Down
2 changes: 1 addition & 1 deletion lib/page/saucenao/sauce_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<int> results = ObservableList();
late StreamController _streamController;
late ObservableStream observableStream;
Expand Down
2 changes: 1 addition & 1 deletion lib/page/webview/saucenao_webview_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class _SauncenaoWebviewState extends State<SauncenaoWebview> {
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";
Expand Down

0 comments on commit e773c7f

Please sign in to comment.