2013-07-01 05:19:15 +00:00
< %inherit file="base.html"/>
< %!
import os
import mylar
2014-11-21 17:16:28 +00:00
from mylar.helpers import checked
2013-07-01 05:19:15 +00:00
%>
< %def name="headerIncludes()">
< div id = "subhead_container" >
< div id = "subhead_menu" >
< a id = "menu_link_delete" href = "#" > Sync< / a >
< a id = "menu_link_delete" href = "#" > Remove Read< / a >
< a id = "menu_link_delete" href = "#" > Clear File Cache< / a >
< a id = "menu_link_refresh" onclick = "doAjaxCall('ReadGetWanted?StoryArcID=${storyarcid}',$(this),'table')" data-success = "Searching for Missing StoryArc Issues" > Search for Missing< / a >
< a id = "menu_link_refresh" onclick = "doAjaxCall('ArcWatchlist?StoryArcID=${storyarcid}',$(this),'table')" data-success = "Searching for matches on Watchlist" > Search for Watchlist matches< / a >
< / div >
< / div >
< /%def>
< %def name="body()">
< div id = "paddingheader" >
< h1 class = "clearfix" > < a href = "readlist" > < img src = "interfaces/default/images/ReadingList-icon.png" height = "26" width = "26" alt = "Reading List" / > Reading List Management< / a > < / h1 >
< / div >
< center > < h1 > ${storyarcname}< / h1 > < / center >
< table class = "configtable" >
< tr >
2014-11-21 17:16:28 +00:00
< form action = "readOptions" id = "chkoptions" method = "GET" >
2013-07-01 05:19:15 +00:00
< fieldset >
IMP: (#844)Annuals now deleted from table on a Delete Series command, IMP: (#837)Better volume detection when searching for issues, IMP: (#842)(#808) Added some handling for issue titles when searching (it's not perfect, but it works for most), IMP: (#836)Added .cb7 for filechecking purposes only, IMP: (#830)issue numbers that are -1 can now be renamed, FIX: 'bi-annual' now fixed along with some other improvements for annual handling, IMP: Added version check for autoProcessComics and ComicRN - in order to help warn users of changes and the need to update these files since they are usually outside of the mylar git directory when being used, FIX:(#840) Boxcar2 should be working again, FIX: (#845) If search returned a filename that had no distinction between issue number and issue title and/or extra information, would error out if any of the words contained NOW, IMP: (#823) Added some better detection for NZBGet parameters when using ComicRN.py
2014-10-06 18:10:36 +00:00
< legend > Options< / legend >
< div class = "row checkbox left clearfix" >
2014-11-21 17:16:28 +00:00
< input type = "checkbox" style = "vertical-align: middle; margin: 3px; margin-top: -1px;" name = "storyarcdir" id = "storyarcdir" value = "1" $ { checked ( mylar . STORYARCDIR ) } / > < label > Should I create a Story-Arc Directory?< / label > < br / >
2013-07-01 05:19:15 +00:00
< small > Arcs in StoryArc Directory: < % sdir = os.path.join(mylar.DESTINATION_DIR, "StoryArcs") %>${sdir}< / small > < br / >
IMP: (#844)Annuals now deleted from table on a Delete Series command, IMP: (#837)Better volume detection when searching for issues, IMP: (#842)(#808) Added some handling for issue titles when searching (it's not perfect, but it works for most), IMP: (#836)Added .cb7 for filechecking purposes only, IMP: (#830)issue numbers that are -1 can now be renamed, FIX: 'bi-annual' now fixed along with some other improvements for annual handling, IMP: Added version check for autoProcessComics and ComicRN - in order to help warn users of changes and the need to update these files since they are usually outside of the mylar git directory when being used, FIX:(#840) Boxcar2 should be working again, FIX: (#845) If search returned a filename that had no distinction between issue number and issue title and/or extra information, would error out if any of the words contained NOW, IMP: (#823) Added some better detection for NZBGet parameters when using ComicRN.py
2014-10-06 18:10:36 +00:00
< input type = "checkbox" style = "vertical-align: middle; margin: 3px; margin-top: -1px;" / > < label > Show Downloaded Story Arc Issues on ReadingList tab< / label > < br / >
2014-11-21 17:16:28 +00:00
< input type = "checkbox" style = "vertical-align: middle; margin: 3px; margin-top: -1px;" name = "read2filename" id = "read2filename" value = "1" $ { checked ( mylar . READ2FILENAME ) } / > < label > Append Reading# to filename< / label > < br / >
< input type = "checkbox" style = "vertical-align: middle; margin: 3px; margin-top: -1px;" / > < label > Enforce Renaming/MetaTagging options (if enabled)< / label > < br / >
2015-01-16 19:40:08 +00:00
< input type = "checkbox" style = "vertical-align: middle; margin: 3px; margin-top: -1px;" name = "copy2arcdir" id = "copy2arcdir" value = "1" $ { checked ( mylar . COPY2ARCDIR ) } / > < label > Copy watchlisted issues to StoryArc Directory< / label >
2014-11-21 17:16:28 +00:00
< input type = "hidden" name = "StoryArcID" value = "${storyarcid}" >
< input type = "hidden" name = "StoryArcName" value = "${storyarcname}" >
2013-07-01 05:19:15 +00:00
< / div >
< / fieldset >
2013-10-01 18:37:42 +00:00
< div >
2013-07-01 05:19:15 +00:00
< input type = "submit" value = "Update" / >
< / div >
< / form >
< / tr >
< / table >
< table class = "display" id = "read_detail" >
< thead >
< tr >
< th id = "readingorder" > < / th >
< th id = "comicname" > ComicName< / th >
< th id = "issue" > Issue< / th >
< th id = "issueyear" > Pub Year< / th >
< th id = "status" > Status< / th >
< th id = "action" > Options< / th >
< / tr >
< / thead >
< tbody >
%for item in readlist:
< %
2015-01-16 19:40:08 +00:00
if item['Status'] == 'Skipped':
grade = 'Z'
elif item['Status'] == 'Wanted':
grade = 'X'
elif item['Status'] == 'Snatched':
grade = 'C'
elif item['Status'] == 'Downloaded':
grade = 'A'
elif item['Status'] == 'Archived':
grade = 'A'
elif item['Status'] == 'Ignored':
2013-07-01 05:19:15 +00:00
grade = 'A'
2015-01-16 19:40:08 +00:00
elif item['Status'] == 'Failed':
grade = 'C'
2013-07-01 05:19:15 +00:00
elif item['Status'] == 'Read':
grade = 'C'
elif item['Status'] == 'Not Watched':
grade = 'X'
else:
2015-01-16 19:40:08 +00:00
grade = 'A'
2013-07-01 05:19:15 +00:00
%>
2013-07-30 04:57:37 +00:00
< tr id = "${item['ReadingOrder']}" class = "grade${grade}" >
2013-07-01 05:19:15 +00:00
< td id = "readingorder" > ${item['ReadingOrder']}< / td >
2014-11-21 17:16:28 +00:00
< td id = "comicname" title = "${item['IssueName']}" > ${item['ComicName']} (${item['SeriesYear']})< / td >
2013-07-01 05:19:15 +00:00
< td id = "issue" > ${item['IssueNumber']}< / td >
2014-11-21 17:16:28 +00:00
< %
2014-12-08 17:19:20 +00:00
try:
if item['IssueDate'] != '0000-00-00' and item['IssueDate'] is not None:
2014-11-21 17:16:28 +00:00
issueyear = item['IssueDate'][:4]
else:
2014-12-08 17:19:20 +00:00
if item['StoreDate'] != '0000-00-00' and item['StoreDate'] is not None:
issueyear = item['IssueDate'][:4]
else:
# this is needed for imported cbl's
try:
issueyear = item['issueYEAR']
except:
issueyear = '0000'
except:
issueyear = '0000'
2014-11-21 17:16:28 +00:00
%>
< td id = "issueyear" > ${issueyear}< / td >
2013-07-01 05:19:15 +00:00
< td id = "status" > ${item['Status']}< / td >
< td id = "action" >
%if item['Status'] is None or item['Status'] == None:
2015-01-16 19:40:08 +00:00
< a href = "queueissue?ComicName=${item['ComicName'] | u}&ComicIssue=${item['IssueNumber']}&ComicYear=${issueyear}&mode=readlist&SARC=${item['StoryArc']}&IssueArcID=${item['IssueArcID']}&SeriesYear=${item['SeriesYear']}" > < span class = "ui-icon ui-icon-plus" > < / span > Grab it< / a >
2013-09-07 06:05:32 +00:00
%elif item['Status'] == 'Snatched':
2015-01-16 19:40:08 +00:00
< a href = "#" onclick = "doAjaxCall('queueissue?ComicName=${item['ComicName'] | u}&ComicIssue=${item['IssueNumber']}&ComicYear=${issueyear}&mode=readlist&SARC=${item['StoryArc']}&IssueArcID=${item['IssueArcID']}&SeriesYear=${item['SeriesYear']}',$(this),'table')" data-success = "Trying to Retry" > < span class = "ui-icon ui-icon-plus" > < / span > Retry< / a >
2013-07-01 05:19:15 +00:00
%endif
< / td >
< / tr >
%endfor
< / tbody >
< / table >
< /%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 >
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
<!--
2013-07-01 05:19:15 +00:00
< script src = "js/libs/jquery.dataTables.rowReordering.js" > < / script >
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
-->
2014-11-21 17:16:28 +00:00
< script type = "text/javascript" >
$("#menu_link_scan").click(function() {
$('#chkoptions').submit();
return true;
});
< / script >
2013-07-01 05:19:15 +00:00
< script >
function initThisPage() {
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
$('#read_detail').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": []
});
//
// }).rowReordering({
// sAjax: "reOrder",
// fnAlert: function(text){
// alert("Order cannot be changed.\n" + text);
// }
// });
//
resetFilters("item");
2013-07-01 05:19:15 +00:00
}
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
2013-07-01 05:19:15 +00:00
$(document).ready(function() {
initThisPage();
initActions();
});
< / script >
< /%def>