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
1 changed files with 3 additions and 0 deletions

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]