mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fix syntax error causing renamer to error out
This commit is contained in:
parent
518a341783
commit
67d58d9f31
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue