mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-01 04:12:16 +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();
|
||||
return {
|
||||
'success': false,
|
||||
'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();
|
||||
return {
|
||||
'success': false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue