1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-02 12:31:44 +00:00

OPDS Comics and Issues

This commit is contained in:
DarkSir23 2017-11-01 13:58:41 -04:00 committed by evilhero
parent 0d1c2347d7
commit 64a0820a7c

View file

@ -292,10 +292,9 @@ class OPDS(object):
links = [] links = []
entries=[] entries=[]
comic = myDB.selectone('SELECT * from comics where ComicID=?', (kwargs['comicid'],)).fetchone() comic = myDB.selectone('SELECT * from comics where ComicID=?', (kwargs['comicid'],)).fetchone()
if len(list(comic)) == 0: if len(comic) == 0:
self.data = _error_with_message('Comic Not Found') self.data = _error_with_message('Comic Not Found')
return return
comic = list(comic)
logger.info(comic) logger.info(comic)
issues = self._dic_from_query('SELECT * from issues WHERE ComicID="' + kwargs['comicid'] + '"order by Int_IssueNumber DESC') issues = self._dic_from_query('SELECT * from issues WHERE ComicID="' + kwargs['comicid'] + '"order by Int_IssueNumber DESC')
if mylar.CONFIG.ANNUALS_ON: if mylar.CONFIG.ANNUALS_ON: