mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +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
BIN
.github/images/autobrr-front.png
vendored
BIN
.github/images/autobrr-front.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 363 KiB |
BIN
.github/images/front-dark.png
vendored
Normal file
BIN
.github/images/front-dark.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 354 KiB |
BIN
.github/images/front-light.png
vendored
Normal file
BIN
.github/images/front-light.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 376 KiB |
|
@ -8,7 +8,8 @@ With inspiration and ideas from tools like trackarr, autodl-irssi and flexget we
|
||||||
|
|
||||||
<p align="center"><img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/autobrr/autobrr?style=for-the-badge"> <img alt="GitHub all releases" src="https://img.shields.io/github/downloads/autobrr/autobrr/total?style=for-the-badge"> <img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/autobrr/autobrr/release.yml?style=for-the-badge"></p>
|
<p align="center"><img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/autobrr/autobrr?style=for-the-badge"> <img alt="GitHub all releases" src="https://img.shields.io/github/downloads/autobrr/autobrr/total?style=for-the-badge"> <img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/autobrr/autobrr/release.yml?style=for-the-badge"></p>
|
||||||
|
|
||||||
<img alt="autobrr ui" src=".github/images/autobrr-front.png"/><br/>
|
<img alt="autobrr ui" src=".github/images/front-dark.png" /><br/>
|
||||||
|
*We also have a light theme. Check it out [here](.github/images/front-light.png).*
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
|
|
@ -111,6 +111,17 @@ const ImportAutodlIrssi = async (inputText: string) => {
|
||||||
const parser = new AutodlIrssiConfigParser();
|
const parser = new AutodlIrssiConfigParser();
|
||||||
parser.Parse(inputText);
|
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;
|
let numSuccess = 0;
|
||||||
for (const filter of parser.releaseFilters) {
|
for (const filter of parser.releaseFilters) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue