Series name namespace clashes: 2 reboots/same year

Namespace clashes when a series reboots more than once in the same year (Unbeatable Squirrel Girl (2015), Spider-Gwen (2015)). Introduced ComicID into the series title and ID - not tremendously user-friendly, but the only real option at this point.
This commit is contained in:
barbequesauce 2018-07-26 09:35:01 -04:00 committed by evilhero
parent 47c03c9345
commit dc937c8781
1 changed files with 3 additions and 3 deletions

View File

@ -269,8 +269,8 @@ class OPDS(object):
if comic['haveissues'] > 0:
entries.append(
{
'title': escape('%s (%s)' % (comic['ComicName'], comic['ComicYear'])),
'id': escape('comic:%s (%s)' % (comic['ComicName'], comic['ComicYear'])),
'title': escape('%s (%s) (comicID: %s)' % (comic['ComicName'], comic['ComicYear'], comic['ComicID'])),
'id': escape('comic:%s (%s) [%s]' % (comic['ComicName'], comic['ComicYear'], comic['ComicID'])),
'updated': comic['DateAdded'],
'content': escape('%s (%s)' % (comic['ComicName'], comic['ComicYear'])),
'href': '%s?cmd=Comic&comicid=%s' % (self.opdsroot, quote_plus(comic['ComicID'])),
@ -385,7 +385,7 @@ class OPDS(object):
entries.append(
{
'title': title,
'id': escape('comic:%s (%s) - %s' % (issue['ComicName'], comic['ComicYear'], issue['Issue_Number'])),
'id': escape('comic:%s (%s) [%s] - %s' % (issue['ComicName'], comic['ComicYear'], comic['ComicID'], issue['Issue_Number'])),
'updated': updated,
'content': escape('%s' % (metainfo[0]['summary'])),
'href': '%s?cmd=Issue&issueid=%s&file=%s' % (self.opdsroot, quote_plus(issue['IssueID']),quote_plus(issue['Location'].encode('utf-8'))),