1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-22 15:52:47 +00:00

FIX: Get rid of 'Site' error when searching non-torrent/ddl related sites

This commit is contained in:
evilhero 2019-02-01 20:13:58 -05:00
parent 9683646d8c
commit 92a60760a0

View file

@ -896,6 +896,9 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDa
comsize_b = entry['size']
elif entry['site'] == 'DDL':
comsize_b = helpers.human2bytes(entry['size'])
else:
tmpsz = entry.enclosures[0]
comsize_b = tmpsz['length']
except Exception as e:
logger.warn('[ERROR] %s [%s]' % (e, entry))
tmpsz = entry.enclosures[0]