Browse Source

cfg.unwanted_extensions() is a list so check must be cfg.unwanted_extensions() != []

Signed-off-by: sanderjo <sander.jonkers+github@gmail.com>
pull/191/merge
sanderjo 11 years ago
committed by shypike
parent
commit
0e8d41ef4d
  1. 2
      sabnzbd/nzbstuff.py

2
sabnzbd/nzbstuff.py

@ -778,7 +778,7 @@ class NzbObject(TryList):
# In the hunt for Unwanted Extensions: # In the hunt for Unwanted Extensions:
# The file with the unwanted extension often is in the first or the last rar file # The file with the unwanted extension often is in the first or the last rar file
# So put the last rar immediatly after the first rar file so that it gets detected early # So put the last rar immediatly after the first rar file so that it gets detected early
if cfg.unwanted_extensions() != "" and not cfg.auto_sort(): if cfg.unwanted_extensions() != [] and not cfg.auto_sort():
# ... only useful if there are unwanted extensions defined and there is no sorting on date # ... only useful if there are unwanted extensions defined and there is no sorting on date
logging.debug('Unwanted Extension: putting last rar after first rar') logging.debug('Unwanted Extension: putting last rar after first rar')
nzfposcounter = firstrarpos = lastrarpos = 0 nzfposcounter = firstrarpos = lastrarpos = 0

Loading…
Cancel
Save