mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(filters): importer (#1149)
fix(web): early exit on filter import chore(readme): add new pic to readme
This commit is contained in:
parent
1900bf7742
commit
25c3f02c72
5 changed files with 13 additions and 1 deletions
|
@ -111,6 +111,17 @@ const ImportAutodlIrssi = async (inputText: string) => {
|
|||
const parser = new AutodlIrssiConfigParser();
|
||||
parser.Parse(inputText);
|
||||
|
||||
if (!parser.releaseFilters) {
|
||||
toast.custom((t) =>
|
||||
<Toast
|
||||
type="warning"
|
||||
body="Cannot import given filter -- it is neither in JSON or autodl-irssi format."
|
||||
t={t}
|
||||
/>
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
let numSuccess = 0;
|
||||
for (const filter of parser.releaseFilters) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue