Update rssDownloader.html

This commit is contained in:
Ruslan 2025-01-28 00:42:53 +03:00 committed by GitHub
commit da403e01d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -434,18 +434,17 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
cache: "no-store" cache: "no-store"
}) })
.then(async (response) => { .then(async (response) => {
if (!response.ok) if (!response.ok) return;
return;
const responseJSON = await response.json(); const responseJSON = await response.json();
const combobox = $("assignCategoryCombobox"); const combobox = $("assignCategoryCombobox");
for (const cat in responseJSON) { for (const cat in responseJSON) {
if (!Object.hasOwn(responseJSON, cat)) if (!Object.hasOwn(responseJSON, cat)) continue;
continue;
const option = document.createElement("option"); const option = document.createElement("option");
option.text = option.value = cat; option.value = cat;
option.appendChild(document.createTextNode(cat));
combobox.add(option); combobox.add(option);
} }
}); });