Skip to content

Commit

Permalink
Unicode mass edit (#688)
Browse files Browse the repository at this point in the history
* Fix unicode error when changing root directories with mass edit

* Fix typo
  • Loading branch information
labrys authored and medariox committed Jun 15, 2016
1 parent 5c74c48 commit 5878701
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sickbeard/server/web/home/add_shows.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def massAddTable(self, rootDir=None):
dir_results = main_db_con.select(
b'SELECT indexer_id '
b'FROM tv_shows '
b'WHERE location = ? LIMIT 1',
b'WHERE location = ? LIMIT 1',
[cur_path]
)

Expand Down Expand Up @@ -534,7 +534,7 @@ def finishAddShow():
series_pieces = whichSeries.split('|')
if (whichSeries and rootDir) or (whichSeries and fullShowPath and len(series_pieces) > 1):
if len(series_pieces) < 6:
logger.log(u'Unable to add show due to show selection. Not anough arguments: %s' % (repr(series_pieces)),
logger.log(u'Unable to add show due to show selection. Not enough arguments: %s' % (repr(series_pieces)),
logger.ERROR)
ui.notifications.error('Unknown error. Unable to add show due to problem with show selection.')
return self.redirect('/addShows/existingShows/')
Expand Down
1 change: 0 additions & 1 deletion sickbeard/server/web/home/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,6 @@ def editShow(self, show=None, location=None, anyQualities=[], bestQualities=[],
show_obj.rls_ignore_words = rls_ignore_words.strip()
show_obj.rls_require_words = rls_require_words.strip()

location = location.decode('UTF-8')
# if we change location clear the db of episodes, change it, write to db, and rescan
old_location = ek(os.path.normpath, show_obj._location)
new_location = ek(os.path.normpath, location)
Expand Down

0 comments on commit 5878701

Please sign in to comment.