mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -07:00
Update rssDownloader.html
This commit is contained in:
parent
7ee3cd6d33
commit
871ba0866e
1 changed files with 11 additions and 7 deletions
|
@ -429,7 +429,7 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// get all categories and add to combobox
|
// get all categories and add to combobox
|
||||||
fetch("api/v2/torrents/categories", {
|
fetch("api/v2/torrents/categories", {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
cache: "no-store"
|
cache: "no-store"
|
||||||
})
|
})
|
||||||
|
@ -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 responseJSON = await response.json();
|
||||||
|
|
||||||
const combobox = $("assignCategoryCombobox");
|
const combobox = document.getElementById("assignCategoryCombobox");
|
||||||
for (const cat in responseJSON) {
|
responseJSON.forEach((category) => {
|
||||||
if (!Object.hasOwn(responseJSON, cat)) continue;
|
|
||||||
|
const safeCategory = document.createTextNode(category).textContent;
|
||||||
|
|
||||||
const option = document.createElement("option");
|
const option = document.createElement("option");
|
||||||
option.value = cat;
|
option.value = safeCategory;
|
||||||
option.textContent = cat;
|
option.textContent = safeCategory;
|
||||||
|
|
||||||
combobox.add(option);
|
combobox.add(option);
|
||||||
}
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// get all rss feed
|
// get all rss feed
|
||||||
const url = new URL("api/v2/rss/items", window.location);
|
const url = new URL("api/v2/rss/items", window.location);
|
||||||
url.search = new URLSearchParams({
|
url.search = new URLSearchParams({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue