Update rssDownloader.html

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

View file

@ -438,16 +438,20 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
const responseJSON = await response.json();
const combobox = $("assignCategoryCombobox");
for (const cat in responseJSON) {
if (!Object.hasOwn(responseJSON, cat)) continue;
const combobox = document.getElementById("assignCategoryCombobox");
responseJSON.forEach((category) => {
const safeCategory = document.createTextNode(category).textContent;
const option = document.createElement("option");
option.value = cat;
option.textContent = cat;
option.value = safeCategory;
option.textContent = safeCategory;
combobox.add(option);
}
});
});
// get all rss feed
const url = new URL("api/v2/rss/items", window.location);
url.search = new URLSearchParams({