1
0
Fork 0
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:
Rupa Schomaker 2017-11-23 16:00:18 -06:00 committed by evilhero
parent b9f11bfb79
commit 3ac494222f

View file

@ -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)