From d3e4652cce0336597a20228609bcac4e8a191e33 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Sat, 1 Oct 2016 14:49:52 +0200 Subject: [PATCH] Fix issue with post processing propers/repacks. --- CHANGES.md | 1 + sickbeard/postProcessor.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 3b469996..39ab6cbe 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -191,6 +191,7 @@ * Remove ILT torrent provider * Update Tornado Web Server 4.3.dev1 (1b6157d) to 4.4.dev1 (c2b4d05) * Change add support for freebsd /var/db/zoneinfo when getting local timezone information +* Fix issue with post processing propers/repacks ### 0.11.15 (2016-09-13 19:50:00 UTC) diff --git a/sickbeard/postProcessor.py b/sickbeard/postProcessor.py index 6d141dc5..39d02245 100644 --- a/sickbeard/postProcessor.py +++ b/sickbeard/postProcessor.py @@ -771,7 +771,8 @@ class PostProcessor(object): # if there's an existing downloaded file with same quality, check filesize to decide if new_ep_quality == old_ep_quality: - if re.search(r'\bproper|repack\b', self.nzb_name, re.I) or re.search(r'\bproper|repack\b', self.file_name, re.I): + if (isinstance(self.nzb_name, basestring) and re.search(r'\bproper|repack\b', self.nzb_name, re.I)) or \ + (isinstance(self.file_name, basestring) and re.search(r'\bproper|repack\b', self.file_name, re.I)): self._log(u'Proper or repack with same quality, marking it safe to replace', logger.DEBUG) return True