mirror of https://github.com/evilhero/mylar
Issue Searching for OPDS
This commit is contained in:
parent
994113dd5a
commit
05ac670ccc
|
@ -484,12 +484,13 @@ class OPDS(object):
|
|||
self.data = self._error_with_message('No ComicID Provided')
|
||||
return
|
||||
myDB = db.DBConnection()
|
||||
issue = myDB.selectone("SELECT * from issues WHERE IssueID=?", (kwargs['issueid'],)).fetchone()
|
||||
issuetype = 0
|
||||
issue = myDB.selectone("SELECT * from readinglist WHERE IssueID=? and Location IS NOT NULL",
|
||||
(kwargs['issueid'],)).fetchone()
|
||||
if not issue:
|
||||
issue = myDB.selectone("SELECT * from issues WHERE IssueID=?", (kwargs['issueid'],)).fetchone()
|
||||
if not issue:
|
||||
issue = myDB.selectone("SELECT * from annuals WHERE IssueID=?", (kwargs['issueid'],)).fetchone()
|
||||
if not issue:
|
||||
issue = myDB.selectone("SELECT * from readinglist WHERE IssueID=? and Location IS NOT NULL", (kwargs['issueid'],)).fetchone()
|
||||
if not issue:
|
||||
self.data = self._error_with_message('Issue Not Found')
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue