From 97c1c05ceee8796463f5ea2964fe9f60f5ff1831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 27 Nov 2017 15:46:28 -0500 Subject: [PATCH] Test --- list_subtitles.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/list_subtitles.py b/list_subtitles.py index 36155b50a..2698b6d98 100644 --- a/list_subtitles.py +++ b/list_subtitles.py @@ -109,7 +109,7 @@ def full_scan_subtitles(): c_db.close() for episode in episodes: - store_subtitles(path_replace(episode[0]).encode('utf8')) + store_subtitles(path_replace(episode[0]).encode('string_escape')) def series_scan_subtitles(no): conn_db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db')) @@ -118,7 +118,7 @@ def series_scan_subtitles(no): c_db.close() for episode in episodes: - store_subtitles(path_replace(episode[0]).encode('utf8')) + store_subtitles(path_replace(episode[0]).encode('string_escape')) list_missing_subtitles(no) @@ -129,4 +129,4 @@ def new_scan_subtitles(): c_db.close() for episode in episodes: - store_subtitles(path_replace(episode[0]).encode('utf8')) + store_subtitles(path_replace(episode[0]).encode('string_escape'))