mirror of
https://github.com/evilhero/mylar
synced 2024-12-23 08:12:41 +00:00
skip file rather than try to serve it up. Prevents error, but now the dir count and the real count differ. Probably want to only list items at the directory level when the item physically exists on disk.
This commit is contained in:
parent
b9f11bfb79
commit
3ac494222f
1 changed files with 3 additions and 0 deletions
|
@ -367,6 +367,9 @@ class OPDS(object):
|
|||
title = escape('Annual %s - %s' % (issue['Issue_Number'], issue['IssueName']))
|
||||
|
||||
fileloc = os.path.join(comic['ComicLocation'],issue['Location'])
|
||||
if not os.path.isfile(fileloc):
|
||||
logger.debug("Missing File: %s" % (fileloc))
|
||||
continue
|
||||
metainfo = None
|
||||
if mylar.CONFIG.OPDS_METAINFO:
|
||||
metainfo = mylar.helpers.IssueDetails(fileloc)
|
||||
|
|
Loading…
Reference in a new issue