From 0104ca4a28d755ee4d9defb8c658c09450641845 Mon Sep 17 00:00:00 2001 From: soup Date: Fri, 27 Dec 2024 15:56:27 +0100 Subject: [PATCH] fix(lists): plaintext only accept URLs (#1901) fix(web): update plaintext list form to only accept URLs --- web/src/forms/settings/ListForms.tsx | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/web/src/forms/settings/ListForms.tsx b/web/src/forms/settings/ListForms.tsx index 14f04c4..4c6e4dc 100644 --- a/web/src/forms/settings/ListForms.tsx +++ b/web/src/forms/settings/ListForms.tsx @@ -678,8 +678,6 @@ function ListTypeTrakt() { } function ListTypePlainText() { - const { values } = useFormikContext(); - return (
@@ -687,25 +685,17 @@ function ListTypePlainText() { Source list

- Use a Trakt list or one of the default autobrr hosted lists. + Use a plain text list with one item per line.

- ({ value: u.value, label: u.label, key: u.label }))} + help="URL to a plain text file with one item per line" + placeholder="https://example.com/list.txt" /> - {!values.url.startsWith("https://api.autobrr.com/") && ( - - )} -
Settings