From e88e0105fc3745fdd093bf0b399af5cd93c4248b Mon Sep 17 00:00:00 2001 From: Fiat2LTC <wichall@awayfromkeyboard.co.uk> Date: Sat, 19 May 2018 11:19:49 +0100 Subject: [PATCH] Apostrophe fixes --- sickbeard/webserve.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 89a72c3a3..858eeb45f 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -2524,7 +2524,7 @@ class HomeAddShows(Home): if not lang or lang == 'null': lang = sickbeard.INDEXER_DEFAULT_LANGUAGE - search_term = search_term.encode('utf-8') + search_term = xhtml_unescape(search_term).encode('utf-8') searchTerms = [search_term] @@ -2977,13 +2977,13 @@ class HomeAddShows(Home): indexer = int(providedIndexer) indexer_id = int(whichSeries) - show_name = ek(os.path.basename, ek(os.path.normpath, fullShowPath)) + show_name = ek(os.path.basename, ek(os.path.normpath, xhtml_unescape(fullShowPath))) # use the whole path if it's given, or else append the show name to the root dir to get the full show path if fullShowPath: - show_dir = ek(os.path.normpath, fullShowPath) + show_dir = ek(os.path.normpath, xhtml_unescape(fullShowPath)) else: - show_dir = ek(os.path.join, rootDir, sanitize_filename(show_name)) + show_dir = ek(os.path.join, rootDir, sanitize_filename(xhtml_unescape(show_name))) # blanket policy - if the dir exists you should have used "add existing show" numbnuts if ek(os.path.isdir, show_dir) and not fullShowPath: -- GitLab