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>
13 window
.addEventListener("DOMContentLoaded", () => {
14 const rules
= new URI().getData("rules").split("|");
16 $("cancelBtn").focus();
17 $("cancelBtn").addEventListener("click", (e
) => {
20 window
.parent
.MochaUI
.closeWindow(window
.parent
.$("clearRulesPage"));
22 $("confirmBtn").addEventListener("click", (e
) => {
26 let completionCount
= 0;
27 rules
.forEach((rule
) => {
28 window
.parent
.qBittorrent
.RssDownloader
.modifyRuleState(decodeURIComponent(rule
), "previouslyMatchedEpisodes", [], () => {
30 if (completionCount
=== rules
.length
) {
31 window
.parent
.qBittorrent
.RssDownloader
.updateRulesList();
32 window
.parent
.MochaUI
.closeWindow(window
.parent
.$("clearRulesPage"));
42 <div style=
"padding: 10px 10px 0px 10px;">
43 <p>QBT_TR(Are you sure you want to clear the list of downloaded episodes for the selected rule?)QBT_TR[CONTEXT=AutomatedRssDownloader]
</p>
44 <div style=
"text-align: right;">
45 <input type=
"button" id=
"cancelBtn" value=
"QBT_TR(No)QBT_TR[CONTEXT=MainWindow]">
46 <input type=
"button" id=
"confirmBtn" value=
"QBT_TR(Yes)QBT_TR[CONTEXT=MainWindow]">