mirror of https://github.com/evilhero/mylar
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:
parent
47c03c9345
commit
dc937c8781
|
@ -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'))),
|
||||
|
|
Loading…
Reference in New Issue