From 0e8d41ef4dcadf2d507c6d9a58209d8f5cb75f10 Mon Sep 17 00:00:00 2001 From: sanderjo Date: Sun, 21 Sep 2014 10:42:12 +0200 Subject: [PATCH] cfg.unwanted_extensions() is a list so check must be cfg.unwanted_extensions() != [] Signed-off-by: sanderjo --- sabnzbd/nzbstuff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sabnzbd/nzbstuff.py b/sabnzbd/nzbstuff.py index 171cac7..4fcb5d3 100644 --- a/sabnzbd/nzbstuff.py +++ b/sabnzbd/nzbstuff.py @@ -778,7 +778,7 @@ class NzbObject(TryList): # In the hunt for Unwanted Extensions: # 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 - 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 logging.debug('Unwanted Extension: putting last rar after first rar') nzfposcounter = firstrarpos = lastrarpos = 0