mirror of
https://github.com/evilhero/mylar
synced 2025-01-03 13:34:33 +00:00
FIX: add 5% filesize comparison fuzziness
FIX: add 5% filesize comparison fuzziness to compare against NZBGet reported download size
This commit is contained in:
parent
b69f132fd7
commit
d6e986af80
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ class NZBGet(object):
|
|||
logger.warn('Either disable Completed Download Handling for NZBGet within Mylar, or remove ComicRN from your category script in NZBGet.')
|
||||
return {'status': 'double-pp', 'failed': False}
|
||||
|
||||
if all(['SUCCESS' in hq[0]['Status'], hq[0]['DownloadedSizeMB'] == hq[0]['FileSizeMB']]):
|
||||
if all(['SUCCESS' in hq[0]['Status'], (hq[0]['FileSizeMB']*.95) <= hq[0]['DownloadedSizeMB'] <= (hq[0]['FileSizeMB']*1.05)]):
|
||||
logger.fdebug('%s has final file size of %sMB' % (hq[0]['Name'], hq[0]['DownloadedSizeMB']))
|
||||
if os.path.isdir(hq[0]['DestDir']):
|
||||
destdir = hq[0]['DestDir']
|
||||
|
|
Loading…
Reference in a new issue