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
da403e01d8
commit
7ee3cd6d33
1 changed files with 15 additions and 15 deletions
|
@ -432,8 +432,8 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
||||||
fetch("api/v2/torrents/categories", {
|
fetch("api/v2/torrents/categories", {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
cache: "no-store"
|
cache: "no-store"
|
||||||
})
|
})
|
||||||
.then(async (response) => {
|
.then(async (response) => {
|
||||||
if (!response.ok) return;
|
if (!response.ok) return;
|
||||||
|
|
||||||
const responseJSON = await response.json();
|
const responseJSON = await response.json();
|
||||||
|
@ -441,13 +441,13 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
||||||
const combobox = $("assignCategoryCombobox");
|
const combobox = $("assignCategoryCombobox");
|
||||||
for (const cat in responseJSON) {
|
for (const cat in responseJSON) {
|
||||||
if (!Object.hasOwn(responseJSON, cat)) continue;
|
if (!Object.hasOwn(responseJSON, cat)) continue;
|
||||||
|
|
||||||
const option = document.createElement("option");
|
const option = document.createElement("option");
|
||||||
option.value = cat;
|
option.value = cat;
|
||||||
option.appendChild(document.createTextNode(cat));
|
option.textContent = cat;
|
||||||
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