From 67d58d9f3114c3932e20ecdaf9025ee0bc04b05f Mon Sep 17 00:00:00 2001 From: Supremicus Date: Thu, 31 Mar 2016 16:57:50 +1000 Subject: [PATCH] Fix syntax error causing renamer to error out --- CHANGES.md | 1 + sickbeard/tv.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 164e6a16..fbea4fc3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -48,6 +48,7 @@ * Change show list second level sort criteria * Change adding show processing to be highest priority * Use timezones to check unaired status during show update/adding +* Fix syntax error causing renamer to error out ### 0.11.10 (2016-03-17 19:00:00 UTC) diff --git a/sickbeard/tv.py b/sickbeard/tv.py index 660c81ac..dd38e064 100644 --- a/sickbeard/tv.py +++ b/sickbeard/tv.py @@ -203,7 +203,7 @@ class TVShow(object): sql_selection = 'SELECT season, episode, ' # subselection to detect multi-episodes early, share_location > 0 - sql_selection = sql_selection + " (SELECT COUNT (*) FROM tv_episodes WHERE showid = tve.showid AND season = tve.season AND location != '' AND location = tve.location AND episode != tve.episode) AS share_location " + sql_selection = sql_selection + ' (SELECT COUNT (*) FROM tv_episodes WHERE showid = tve.showid AND season = tve.season AND location != "" AND location = tve.location AND episode != tve.episode) AS share_location ' sql_selection = sql_selection + ' FROM tv_episodes tve WHERE showid = ' + str(self.indexerid) @@ -211,7 +211,7 @@ class TVShow(object): sql_selection = sql_selection + ' AND season = ' + str(season) if has_location: - sql_selection = sql_selection + ' AND location != '' ' + sql_selection = sql_selection + ' AND location != "" ' # need ORDER episode ASC to rename multi-episodes in order S01E01-02 sql_selection = sql_selection + ' ORDER BY season ASC, episode ASC'