2 <html lang=
"${LANG}" class=
"dark">
6 <title>QBT_TR(Clear downloaded episodes)QBT_TR[CONTEXT=AutomatedRssDownloader]
</title>
7 <link rel=
"stylesheet" href=
"css/style.css?v=${CACHEID}" type=
"text/css">
8 <script src=
"scripts/lib/MooTools-Core-1.6.0-compat-compressed.js"></script>
9 <script src=
"scripts/lib/MooTools-More-1.6.0-compat-compressed.js"></script>
10 <script src=
"scripts/localpreferences.js?v=${CACHEID}"></script>
11 <script src=
"scripts/color-scheme.js?v=${CACHEID}"></script>
15 window
.addEventListener("DOMContentLoaded", () => {
16 const rules
= new URI().getData("rules").split("|");
18 $("cancelBtn").focus();
19 $("cancelBtn").addEventListener("click", (e
) => {
22 window
.parent
.qBittorrent
.Client
.closeFrameWindow(window
);
24 $("confirmBtn").addEventListener("click", (e
) => {
28 let completionCount
= 0;
29 rules
.forEach((rule
) => {
30 window
.parent
.qBittorrent
.RssDownloader
.modifyRuleState(decodeURIComponent(rule
), "previouslyMatchedEpisodes", [], () => {
32 if (completionCount
=== rules
.length
) {
33 window
.parent
.qBittorrent
.RssDownloader
.updateRulesList();
34 window
.parent
.qBittorrent
.Client
.closeFrameWindow(window
);
44 <div style=
"padding: 10px 10px 0px 10px;">
45 <p>QBT_TR(Are you sure you want to clear the list of downloaded episodes for the selected rule?)QBT_TR[CONTEXT=AutomatedRssDownloader]
</p>
46 <div style=
"text-align: right;">
47 <input type=
"button" id=
"cancelBtn" value=
"QBT_TR(No)QBT_TR[CONTEXT=MainWindow]">
48 <input type=
"button" id=
"confirmBtn" value=
"QBT_TR(Yes)QBT_TR[CONTEXT=MainWindow]">