FIX:(#1789) Fix for OPDS Feed not showing non-watchlisted items of an arc

This commit is contained in:
evilhero 2018-05-23 10:23:36 -04:00
parent c557626e64
commit 05081d9a62
1 changed files with 7 additions and 10 deletions

View File

@ -500,18 +500,15 @@ class OPDS(object):
if not issue:
self.data = self._error_with_message('Issue Not Found')
return
else:
issuetype = 1
comic = myDB.selectone("SELECT * from comics WHERE ComicID=?", (issue['ComicID'],)).fetchone()
if not comic:
self.data = self._error_with_message('Comic Not Found')
return
if issuetype:
self.file = issue['Location']
self.filename = os.path.split(issue['Location'])[1]
else:
comic = myDB.selectone("SELECT * from comics WHERE ComicID=?", (issue['ComicID'],)).fetchone()
if not comic:
self.data = self._error_with_message('Comic Not Found in Watchlist')
return
self.file = os.path.join(comic['ComicLocation'],issue['Location'])
self.filename = issue['Location']
else:
self.file = issue['Location']
self.filename = os.path.split(issue['Location'])[1]
return
def _StoryArcs(self, **kwargs):