Fix issue on Add Existing Shows page where shows were listed that should not have been.

This commit is contained in:
JackDandy 2016-01-06 20:15:55 +00:00
parent 1cf0b5f9b2
commit 842b08c5fc
5 changed files with 12 additions and 13 deletions

View file

@ -1,9 +1,4 @@
### 0.12.0 (2015-xx-xx xx:xx:xx UTC)
* Change to generalize xem id fetching
### 0.11.0 (2015-xx-xx xx:xx:xx UTC)
### 0.11.0 (2016-xx-xx xx:xx:xx UTC)
* Change to only refresh scene exception data for shows that need it
* Change reduce aggressive use of scene numbering that was overriding user preference where not needed
@ -109,6 +104,8 @@
* Change sab to use requests library
* Add "View Changes" to tools menu
* Change disable connection attempts and remove UI references to the TVRage info source
* Change to simplify xem id fetching
* Fix issue on Add Existing Shows page where shows were listed that should not have been
### 0.10.0 (2015-08-06 11:05:00 UTC)

View file

@ -21,7 +21,7 @@
</tfoot>
<tbody>
#for $curDir in $dirList
#if $curDir['added_already'] and None is $curDir.get('highlight')
#if $curDir['added_already'] and (None is $curDir.get('highlight') or not $kwargs.get('hash_dir'))
#continue
#end if

View file

@ -91,7 +91,7 @@ class TraktNotifier:
msg = 'Episode not found on Trakt, not adding to'
else:
warn, msg = True, 'Could not add episode to'
except exceptions.TraktAuthException, exceptions.TraktException:
except (exceptions.TraktAuthException, exceptions.TraktException):
warn, msg = True, 'Error adding episode to'
msg = 'Trakt: %s your %s collection' % (msg, sickbeard.TRAKT_ACCOUNTS[tid].name)
if not warn:

View file

@ -116,7 +116,7 @@ def compile_word_list(lookup_words, re_prefix='(^|[\W_])', re_suffix='($|[\W_])'
# !0 == regex and subject = s / 'what\'s the "time"' / what\'s\ the\ \"time\"
subject = search_raw and re.escape(word) or re.sub(r'([\" \'])', r'\\\1', word)
result.append(re.compile('(?i)%s%s%s' % (re_prefix, subject, re_suffix)))
except Exception as e:
except re.error as e:
logger.log(u'Failure to compile filter expression: %s ... Reason: %s' % (word, e.message), logger.DEBUG)
diff = len(lookup_words) - len(result)

View file

@ -2302,6 +2302,8 @@ class NewHomeAddShows(Home):
if indexer_id and helpers.findCertainShow(sickbeard.showList, indexer_id):
cur_dir['added_already'] = True
file_list = None
t.dirList = dir_list
return t.respond()