2012-09-13 15:27:34 +00:00
|
|
|
<%inherit file="base.html"/>
|
|
|
|
<%!
|
|
|
|
from mylar import helpers
|
|
|
|
%>
|
|
|
|
|
|
|
|
<%def name="headerIncludes()">
|
|
|
|
<div id="subhead_container">
|
|
|
|
<div id="subhead_menu">
|
|
|
|
<a id="menu_link_delete" href="#" onclick="doAjaxCall('clearhistory?type=all',$(this),'table')" data-success="All History cleared">Clear All History</a>
|
|
|
|
<a id="menu_link_delete" href="#" onclick="doAjaxCall('clearhistory?type=Processed',$(this),'table')" data-success="All Processed cleared">Clear Processed</a>
|
|
|
|
<a id="menu_link_delete" href="#" onclick="doAjaxCall('clearhistory?type=Unprocessed',$(this),'table')" data-success="All Unprocessed cleared">Clear Unprocessed</a>
|
|
|
|
<a id="menu_link_delete" href="#" onclick="doAjaxCall('clearhistory?type=Snatched',$(this),'table')" data-success="All Snatched cleared">Clear Snatched</a>
|
2013-08-06 00:53:10 +00:00
|
|
|
<a id="menu_link_delete" href="#" onclick="doAjaxCall('wipenzblog',$(this),'table')" data-success="Wiped entire NZB DB">Wipe NZBLOG</a>
|
2012-09-13 15:27:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</%def>
|
|
|
|
|
|
|
|
<%def name="body()">
|
|
|
|
<div id="paddingheader">
|
|
|
|
<h1 class="clearfix"><img src="interfaces/default/images/icon_history.png" alt="History"/>History</h1>
|
|
|
|
</div>
|
2013-07-06 02:42:58 +00:00
|
|
|
|
|
|
|
<form action="markissues" method="get" id="markissues">
|
|
|
|
<div id="markissue">Mark selected issues as
|
|
|
|
<select name="action" onChange="doAjaxCall('markissues',$(this),'table',true);" data-success="selected issues marked">
|
|
|
|
<option disabled="disabled" selected="selected">Choose...</option>
|
|
|
|
<option value="Retry">Retry</option>
|
|
|
|
<option value="Clear">Clear</option>
|
|
|
|
</select>
|
|
|
|
selected issues
|
|
|
|
<input type="hidden" value="Go">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="table_wrapper" id="history_table_wrapper">
|
|
|
|
|
2012-09-13 15:27:34 +00:00
|
|
|
<table class="display" id="history_table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2013-07-06 02:42:58 +00:00
|
|
|
<th id="select" align="left"><input type="checkbox" onClick="toggle(this)" class="checkbox" /></th>
|
2012-09-13 15:27:34 +00:00
|
|
|
<th id="dateadded">Date Added</th>
|
|
|
|
<th id="filename">Comic Name</th>
|
|
|
|
<th id="issue">Issue</th>
|
|
|
|
<th id="status">Status</th>
|
|
|
|
<th id="action"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
%for item in history:
|
|
|
|
<%
|
|
|
|
if item['Status'] == 'Processed':
|
|
|
|
grade = 'A'
|
|
|
|
elif item['Status'] == 'Snatched':
|
|
|
|
grade = 'C'
|
|
|
|
elif item['Status'] == 'Unprocessed':
|
|
|
|
grade = 'X'
|
|
|
|
else:
|
|
|
|
grade = 'U'
|
|
|
|
|
|
|
|
%>
|
|
|
|
<tr class="grade${grade}">
|
2013-07-06 02:42:58 +00:00
|
|
|
<td id="select"><input type="checkbox" name="${item['IssueID']}" class="checkbox" /></td>
|
2012-09-13 15:27:34 +00:00
|
|
|
<td id="dateadded">${item['DateAdded']}</td>
|
IMP: Ability to now specify search provider order (regardless of torrents or nzb) within the config.ini, IMP: (#667) Changed the db module to try to accomodate db locking errors and lowering the amount of actual write transactions that were committed along with a new scheduler system, IMP: Changed sabnzbd directory to post-processing, and included subdirs for sabnzbd & nzbget ComicRN scripts, IMP: NZBGet Post-Processing ComicRN.py script (updated for use with nzbget v11.0+)added & updated in post-processing/nzbget directory (thnx ministoat), FIX: If Issue Location was None, and status was Downloaded would cause error in GUI and break series, IMP: (#689) Minimum # of seeders added (will work with KAT), IMP: (#680) Added Boxcar 2 IO Notifications, IMP: Added PushBullet Notifications, IMP: Cleaned up some notification messages so it's not so cluttered, IMP: Added Clickable series link in History tab, IMP: Added Post-Processed as a status to History tab to show manually post-processed items, IMP: Removed log level dropdown from Logs page & added 'ThreadName' as a column, IMP: Added Force Check Availability & View Future Pull-list to Upcoming sub-tabs, IMP: Added '--safe' option to startup options which will redirect directly to Manage Comics screen incase things are broken, FIX: Added proper month conversions for manual post-processing when doing comparitive issue analysis for matches, FIX: (#613) Allow for negative issue numbers in post-processing when renaming and issue padding is enabled, FIX: File Permissions on post-processing would stop post-processing if couldn't change, now will just log the error and continue, IMP: Added Scheduler (from sickbeard) to allow for threadnaming and better scheduling, IMP: Filenames in the format of ' () ' will now get scanned in, IMP: During manual post-processing will now stop looking for matches upon a successful match, IMP: A Refresh/Weeklypull series check will now just scan in issue data, instead of series info,etc, IMP: Removed some legacy GCD code that is no longer in use, IMP: Exception/traceback handling will now be logged, FIX: Unable to grab torrents from KAT due to content-encoding detection failing, IMP: Added universal date-time conversion to allow for non-english based dates to be properly compared when checking search results against publication dates, FIX: Annuals will now get proper notification (prior was leaving out the word 'annual' from notification/logs), IMP: Improved future pull-list detection and increased retension (now ~5 months), IMP: Will now mark new issues as Wanted on a Refresh Series if autowant upcoming is enabled (was reverting to a status of None previously), IMP: Cannot change status to Downloaded if current status is Skipped or Wanted, FIX: (#704) UnSkipped will now work (X in options column on comic details page), IMP: future_check will check upcoming future issues (future pull-list) that have no series data yet (ie. #1's) and auto-add them to watchlist when the data is available and auto-want accordingly, IMP: (#706) Downloading issues to local machine (via comicdetails screen) with special characters in filename now will work, IMP: improved comparison checks during weekly pull list and improved speed abit since only refreshing issue data now instead of entire series, Other Referenced issues: (#670)(#690) and some others....
2014-05-25 18:32:11 +00:00
|
|
|
<td id="filename"><a href="comicDetails?ComicID=${item['ComicID']}">${item['ComicName']}</a></td>
|
2012-09-13 15:27:34 +00:00
|
|
|
<td id="issue">${item['Issue_Number']}</td>
|
2013-07-30 04:57:37 +00:00
|
|
|
<td id="status">${item['Status']}
|
2013-10-01 17:42:39 +00:00
|
|
|
%if item['Provider'] == 'CBT' or item['Provider'] == 'KAT':
|
2013-07-30 04:57:37 +00:00
|
|
|
<img src="interfaces/default/images/torrent-icon.png" height="20" width="20" title="${item['Provider']}" />
|
2013-10-01 18:37:42 +00:00
|
|
|
%else:
|
IMP: Ability to now specify search provider order (regardless of torrents or nzb) within the config.ini, IMP: (#667) Changed the db module to try to accomodate db locking errors and lowering the amount of actual write transactions that were committed along with a new scheduler system, IMP: Changed sabnzbd directory to post-processing, and included subdirs for sabnzbd & nzbget ComicRN scripts, IMP: NZBGet Post-Processing ComicRN.py script (updated for use with nzbget v11.0+)added & updated in post-processing/nzbget directory (thnx ministoat), FIX: If Issue Location was None, and status was Downloaded would cause error in GUI and break series, IMP: (#689) Minimum # of seeders added (will work with KAT), IMP: (#680) Added Boxcar 2 IO Notifications, IMP: Added PushBullet Notifications, IMP: Cleaned up some notification messages so it's not so cluttered, IMP: Added Clickable series link in History tab, IMP: Added Post-Processed as a status to History tab to show manually post-processed items, IMP: Removed log level dropdown from Logs page & added 'ThreadName' as a column, IMP: Added Force Check Availability & View Future Pull-list to Upcoming sub-tabs, IMP: Added '--safe' option to startup options which will redirect directly to Manage Comics screen incase things are broken, FIX: Added proper month conversions for manual post-processing when doing comparitive issue analysis for matches, FIX: (#613) Allow for negative issue numbers in post-processing when renaming and issue padding is enabled, FIX: File Permissions on post-processing would stop post-processing if couldn't change, now will just log the error and continue, IMP: Added Scheduler (from sickbeard) to allow for threadnaming and better scheduling, IMP: Filenames in the format of ' () ' will now get scanned in, IMP: During manual post-processing will now stop looking for matches upon a successful match, IMP: A Refresh/Weeklypull series check will now just scan in issue data, instead of series info,etc, IMP: Removed some legacy GCD code that is no longer in use, IMP: Exception/traceback handling will now be logged, FIX: Unable to grab torrents from KAT due to content-encoding detection failing, IMP: Added universal date-time conversion to allow for non-english based dates to be properly compared when checking search results against publication dates, FIX: Annuals will now get proper notification (prior was leaving out the word 'annual' from notification/logs), IMP: Improved future pull-list detection and increased retension (now ~5 months), IMP: Will now mark new issues as Wanted on a Refresh Series if autowant upcoming is enabled (was reverting to a status of None previously), IMP: Cannot change status to Downloaded if current status is Skipped or Wanted, FIX: (#704) UnSkipped will now work (X in options column on comic details page), IMP: future_check will check upcoming future issues (future pull-list) that have no series data yet (ie. #1's) and auto-add them to watchlist when the data is available and auto-want accordingly, IMP: (#706) Downloading issues to local machine (via comicdetails screen) with special characters in filename now will work, IMP: improved comparison checks during weekly pull list and improved speed abit since only refreshing issue data now instead of entire series, Other Referenced issues: (#670)(#690) and some others....
2014-05-25 18:32:11 +00:00
|
|
|
%if item['Status'] != 'Downloaded' and item['Status'] != 'Post-Processed':
|
2013-10-01 18:37:42 +00:00
|
|
|
(${item['Provider']})
|
|
|
|
%endif
|
2013-07-30 04:57:37 +00:00
|
|
|
%endif
|
|
|
|
</td>
|
2014-08-10 16:50:43 +00:00
|
|
|
<td id="action">[<a href="#" onclick="doAjaxCall('retryit?ComicName=${item['ComicName'] |u}&ComicID=${item['ComicID']}&IssueID=${item['IssueID']}&IssueNumber=${item['Issue_Number']}&redirect=history', $(this),'table')" data-success="Successful re-download of '${item['ComicName']}' '${item['Issue_Number']}'">retry</a>]</td>
|
2012-09-13 15:27:34 +00:00
|
|
|
</tr>
|
|
|
|
%endfor
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2013-07-06 02:42:58 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
2012-09-13 15:27:34 +00:00
|
|
|
</%def>
|
|
|
|
|
|
|
|
<%def name="headIncludes()">
|
|
|
|
<link rel="stylesheet" href="interfaces/default/css/data_table.css">
|
|
|
|
</%def>
|
|
|
|
|
|
|
|
<%def name="javascriptIncludes()">
|
|
|
|
<script src="js/libs/jquery.dataTables.min.js"></script>
|
|
|
|
<script>
|
|
|
|
function initThisPage() {
|
|
|
|
$('#history_table').dataTable({
|
|
|
|
"bDestroy": true,
|
|
|
|
"oLanguage": {
|
|
|
|
"sLengthMenu":"Show _MENU_ items per page",
|
|
|
|
"sEmptyTable": "<em>No History to Display</em>",
|
|
|
|
"sInfo":"Showing _START_ to _END_ of _TOTAL_ items",
|
|
|
|
"sInfoEmpty":"Showing 0 to 0 of 0 items",
|
|
|
|
"sInfoFiltered":"(filtered from _MAX_ total items)"},
|
|
|
|
"iDisplayLength": 25,
|
|
|
|
"sPaginationType": "full_numbers",
|
|
|
|
"aaSorting": []
|
|
|
|
|
|
|
|
});
|
|
|
|
resetFilters("history");
|
|
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
|
|
initThisPage();
|
|
|
|
initActions();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</%def>
|