mirror of
https://github.com/evilhero/mylar
synced 2024-12-22 07:42:24 +00:00
FIX: Get rid of 'Site' error when searching non-torrent/ddl related sites
This commit is contained in:
parent
9683646d8c
commit
92a60760a0
1 changed files with 3 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue