mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 10:18:20 +03:00
parent
91560e6e60
commit
c14b08bd1d
1 changed files with 14 additions and 0 deletions
|
@ -211,7 +211,16 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<label class="noWrap">QBT_TR(Add Tags:)QBT_TR[CONTEXT=AutomatedRssDownloader]</label>
|
||||||
|
</td>
|
||||||
|
<td class="fullWidth">
|
||||||
|
<input type="text" id="ruleAddTags" class="fullWidth" autocapitalize="none" autocorrect="off" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<input disabled type="checkbox" id="savetoDifferentDir" />
|
<input disabled type="checkbox" id="savetoDifferentDir" />
|
||||||
<label for="savetoDifferentDir">QBT_TR(Save to a Different Directory)QBT_TR[CONTEXT=AutomatedRssDownloader]</label>
|
<label for="savetoDifferentDir">QBT_TR(Save to a Different Directory)QBT_TR[CONTEXT=AutomatedRssDownloader]</label>
|
||||||
|
@ -583,6 +592,7 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
||||||
.getValues();
|
.getValues();
|
||||||
|
|
||||||
rulesList[rule].torrentParams.category = $('assignCategoryCombobox').value;
|
rulesList[rule].torrentParams.category = $('assignCategoryCombobox').value;
|
||||||
|
rulesList[rule].torrentParams.tags = $('ruleAddTags').value.split(',');
|
||||||
rulesList[rule].torrentParams.save_path = $('savetoDifferentDir').checked ? $('saveToText').value : '';
|
rulesList[rule].torrentParams.save_path = $('savetoDifferentDir').checked ? $('saveToText').value : '';
|
||||||
|
|
||||||
switch ($('addPausedCombobox').value) {
|
switch ($('addPausedCombobox').value) {
|
||||||
|
@ -666,6 +676,7 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
||||||
$('episodeFilterText').disabled = true;
|
$('episodeFilterText').disabled = true;
|
||||||
$('useSmartFilter').disabled = true;
|
$('useSmartFilter').disabled = true;
|
||||||
$('assignCategoryCombobox').disabled = true;
|
$('assignCategoryCombobox').disabled = true;
|
||||||
|
$('ruleAddTags').disabled = true;
|
||||||
$('savetoDifferentDir').disabled = true;
|
$('savetoDifferentDir').disabled = true;
|
||||||
$('saveToText').disabled = true;
|
$('saveToText').disabled = true;
|
||||||
$('ignoreDaysValue').disabled = true;
|
$('ignoreDaysValue').disabled = true;
|
||||||
|
@ -679,6 +690,7 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
||||||
$('episodeFilterText').value = '';
|
$('episodeFilterText').value = '';
|
||||||
$('useSmartFilter').checked = false;
|
$('useSmartFilter').checked = false;
|
||||||
$('assignCategoryCombobox').value = 'default';
|
$('assignCategoryCombobox').value = 'default';
|
||||||
|
$('ruleAddTags').value = '';
|
||||||
$('savetoDifferentDir').checked = false;
|
$('savetoDifferentDir').checked = false;
|
||||||
$('saveToText').value = '';
|
$('saveToText').value = '';
|
||||||
$('ignoreDaysValue').value = 0;
|
$('ignoreDaysValue').value = 0;
|
||||||
|
@ -701,6 +713,7 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
||||||
$('episodeFilterText').disabled = false;
|
$('episodeFilterText').disabled = false;
|
||||||
$('useSmartFilter').disabled = false;
|
$('useSmartFilter').disabled = false;
|
||||||
$('assignCategoryCombobox').disabled = false;
|
$('assignCategoryCombobox').disabled = false;
|
||||||
|
$('ruleAddTags').disabled = false;
|
||||||
$('savetoDifferentDir').disabled = false;
|
$('savetoDifferentDir').disabled = false;
|
||||||
$('savetoDifferentDir').checked = rulesList[ruleName].torrentParams.save_path ? false : true;
|
$('savetoDifferentDir').checked = rulesList[ruleName].torrentParams.save_path ? false : true;
|
||||||
$('saveToText').disabled = rulesList[ruleName].torrentParams.save_path ? false : true;
|
$('saveToText').disabled = rulesList[ruleName].torrentParams.save_path ? false : true;
|
||||||
|
@ -716,6 +729,7 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
||||||
$('useSmartFilter').checked = rulesList[ruleName].smartFilter;
|
$('useSmartFilter').checked = rulesList[ruleName].smartFilter;
|
||||||
|
|
||||||
$('assignCategoryCombobox').value = rulesList[ruleName].torrentParams.category ? rulesList[ruleName].torrentParams.category : 'default';
|
$('assignCategoryCombobox').value = rulesList[ruleName].torrentParams.category ? rulesList[ruleName].torrentParams.category : 'default';
|
||||||
|
$('ruleAddTags').value = rulesList[ruleName].torrentParams.tags.join(',');
|
||||||
$('savetoDifferentDir').checked = rulesList[ruleName].torrentParams.save_path !== '';
|
$('savetoDifferentDir').checked = rulesList[ruleName].torrentParams.save_path !== '';
|
||||||
$('saveToText').value = rulesList[ruleName].torrentParams.save_path;
|
$('saveToText').value = rulesList[ruleName].torrentParams.save_path;
|
||||||
$('ignoreDaysValue').value = rulesList[ruleName].ignoreDays;
|
$('ignoreDaysValue').value = rulesList[ruleName].ignoreDays;
|
||||||
|
|
Loading…
Reference in a new issue