Browse Source

better desc for missing releases, also move the log message to not spam the log everytime we run an rename iteration

pull/6004/merge
Joel Kåberg 9 years ago
parent
commit
8f990d16d2
  1. 4
      couchpotato/core/plugins/renamer.py

4
couchpotato/core/plugins/renamer.py

@ -1008,14 +1008,14 @@ Remove it if you want it to be renamed (again, or at least let it try again)
break
if not found_release:
log.info('%s not found in downloaders', nzbname)
#Check status if already missing and for how long, if > 1 week, set to ignored else to missing
if rel.get('status') == 'missing':
if rel.get('last_edit') < int(time.time()) - 7 * 24 * 60 * 60:
log.info('%s not found in downloaders after 7 days, setting status to ignored', nzbname)
fireEvent('release.update_status', rel.get('_id'), status = 'ignored', single = True)
else:
# Set the release to missing
log.info('%s not found in downloaders, setting status to missing', nzbname)
fireEvent('release.update_status', rel.get('_id'), status = 'missing', single = True)
# Continue with next release

Loading…
Cancel
Save