Added DateAdded, ReleaseDate to OPDS titles

Added DateAdded, ReleaseDate to OPDS titles
This commit is contained in:
Barbeque Sauce 2018-03-09 11:51:53 -05:00 committed by evilhero
parent b47b5351d4
commit 506435c598
1 changed files with 9 additions and 4 deletions

View File

@ -430,11 +430,16 @@ class OPDS(object):
thumbnail = None
if issuebook:
if 'DateAdded' in issuebook.keys():
title = escape('%03d: %s #%s - %s' % (index + number, issuebook['ComicName'], issuebook['Issue_Number'], issuebook['IssueName']))
image = issuebook['ImageURL_ALT']
thumbnail = issuebook['ImageURL']
if 'DateAdded' is None:
title = escape('%03d: %s #%s - %s (In stores %s)' % (index + number, issuebook['ComicName'], issuebook['Issue_Number'], issuebook['IssueName'], issuebook['ReleaseDate']))
image = issuebook['ImageURL_ALT']
thumbnail = issuebook['ImageURL']
else:
title = escape('%03d: %s #%s - %s (Added to Mylar %s, in stores %s)' % (index + number, issuebook['ComicName'], issuebook['Issue_Number'], issuebook['IssueName'], issuebook['DateAdded'], issuebook['ReleaseDate']))
image = issuebook['ImageURL_ALT']
thumbnail = issuebook['ImageURL']
else:
title = escape('%03d: %s Annual %s - %s' % (index + number, issuebook['ComicName'], issuebook['Issue_Number'], issuebook['IssueName']))
title = escape('%03d: %s Annual %s - %s (In stores %s)' % (index + number, issuebook['ComicName'], issuebook['Issue_Number'], issuebook['IssueName'], issuebook['ReleaseDate']))
# logger.info("%s - %s" % (comic['ComicLocation'], issuebook['Location']))
number +=1
if not issuebook['Location']: