From 356e395ba274caebe6f881e4f951cfacc27929e5 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Wed, 1 Jun 2016 16:14:37 +0100 Subject: [PATCH] Fix post processing "Force already processed" processing only the first of multiple files. --- CHANGES.md | 1 + sickbeard/processTV.py | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 3f744042..39b7c1ac 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -73,6 +73,7 @@ * Change only create threads for providers needing a recent search instead of for all enabled * Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all * Change remove some logging cruft +* Fix post processing "Force already processed" processing only the first of multiple files ### 0.11.11 (2016-04-05 19:20:00 UTC) diff --git a/sickbeard/processTV.py b/sickbeard/processTV.py index cad134fb..ffd9fa35 100644 --- a/sickbeard/processTV.py +++ b/sickbeard/processTV.py @@ -313,7 +313,8 @@ class ProcessTVShow(object): if not self.files_failed: _bottom_line(u'Successfully processed.', logger.MESSAGE) else: - _bottom_line(u'Successfully processed at least one video file %s.' % (', others were skipped', 'and skipped another')[1 == self.files_failed], logger.MESSAGE) + _bottom_line(u'Successfully processed at least one video file%s.' % + (', others were skipped', ' and skipped another')[1 == self.files_failed], logger.MESSAGE) else: _bottom_line(u'Failed! Did not process any files.', logger.WARNING) @@ -432,7 +433,7 @@ class ProcessTVShow(object): def _already_postprocessed(self, dir_name, videofile, force): - if force and not self.any_vid_processed: + if force or not self.any_vid_processed: return False # Needed for accessing DB with a unicode dir_name @@ -454,7 +455,7 @@ class ProcessTVShow(object): # processed in the past return False - showlink = (' for "%s"' % (parse_result.show.indexerid, parse_result.show.name), + showlink = ('for "%s"' % (parse_result.show.indexerid, parse_result.show.name), parse_result.show.name)[self.any_vid_processed] ep_detail_sql = ''