1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-03-09 13:24:53 +00:00

FIX: When Adding a Story Arc via the Search method, if an issue had no title it would error out and only display a few issues when viewing the arc, IMP: When viewing a specific Story Arc, if it was an imported cbl, the issue's would not display the Publication Year properly, IMP: Removed a spammed print message, IMP: Changed the colour of the Donate button so that it's blue.

This commit is contained in:
evilhero 2014-12-08 12:19:20 -05:00
parent f19783ed56
commit f3806a1b4c
4 changed files with 19 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 101 KiB

View file

@ -79,13 +79,20 @@
<td id="comicname" title="${item['IssueName']}">${item['ComicName']} (${item['SeriesYear']})</td>
<td id="issue">${item['IssueNumber']}</td>
<%
if item['IssueDate'] != '0000-00-00':
issueyear = item['IssueDate'][:4]
else:
if item['StoreDate'] != '0000-00-00':
try:
if item['IssueDate'] != '0000-00-00' and item['IssueDate'] is not None:
issueyear = item['IssueDate'][:4]
else:
issueyear = '0000'
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'
%>
<td id="issueyear">${issueyear}</td>
<td id="status">${item['Status']}</td>

View file

@ -1223,7 +1223,7 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDa
#
# else:
# pass
print str(vals)
#print str(vals)
if vals is not None:
if vals[0]['status'] == 'continue':

View file

@ -481,6 +481,11 @@ class WebInterface(object):
seriesYear = 'None'
issuePublisher = 'None'
if AD['IssueName'] is None:
IssueName = 'None'
else:
IssueName = AD['IssueName'][:70]
for cid in comicid_results:
if cid['ComicID'] == AD['ComicID']:
seriesYear = cid['SeriesYear']
@ -493,7 +498,7 @@ class WebInterface(object):
"IssueID": AD['IssueID'],
"StoryArc": storyarcname,
"ComicName": AD['ComicName'],
"IssueName": AD['IssueName'][:70],
"IssueName": IssueName,
"IssueNumber": AD['Issue_Number'],
"Publisher": storyarcpublisher,
"TotalIssues": storyarcissues,