Browse Source

Prevent removal of download if disk is full.

Download hasn't failed but rather been temporarily stalled. It should leave the download a lone until a proper error that cannot be fixed.
If the disk is full it will also likely prevent any other downloads as well so even more reason to leave it alone.
pull/7211/head
QuasimodoNZ 8 years ago
committed by GitHub
parent
commit
1d73760808
  1. 2
      couchpotato/core/downloaders/utorrent.py

2
couchpotato/core/downloaders/utorrent.py

@ -176,7 +176,7 @@ class uTorrent(DownloaderBase):
status = 'busy'
if (torrent[1] & self.status_flags['STARTED'] or torrent[1] & self.status_flags['QUEUED']) and torrent[4] == 1000:
status = 'seeding'
elif torrent[1] & self.status_flags['ERROR']:
elif torrent[1] & self.status_flags['ERROR'] and 'There is not enough space on the disk' not in torrent[21]:
status = 'failed'
elif torrent[4] == 1000:
status = 'completed'

Loading…
Cancel
Save