mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-02 12:52:18 +00:00
Add lists fixes
This commit is contained in:
parent
151cbb996e
commit
48fc96a16a
1 changed files with 2 additions and 2 deletions
|
@ -325,14 +325,14 @@ class FilteringProvider with ChangeNotifier {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (result1['result'] == 'error' && result1['log'].statusCode == '400' && result1['log'].resBody.toString().contains("Couldn't fetch filter from url")) {
|
else if (result1['result'] == 'error' && result1['log'].statusCode == '400' && result1['log'].resBody.toString().contains("data is HTML, not plain text")) {
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
return {
|
return {
|
||||||
'success': false,
|
'success': false,
|
||||||
'error': 'invalid_url'
|
'error': 'invalid_url'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if (result1['result'] == 'error' && result1['log'].statusCode == '400' && result1['log'].resBody.toString().contains('Filter URL already added')) {
|
else if (result1['result'] == 'error' && result1['log'].statusCode == '400' && result1['log'].resBody.toString().contains('url already exists')) {
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
return {
|
return {
|
||||||
'success': false,
|
'success': false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue