From 69a74c50041ddf6542a28fed6efa5f3e9e00bea6 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:53:16 -0500 Subject: [PATCH] Test --- list_subtitles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list_subtitles.py b/list_subtitles.py index dcc764793..089cb3667 100644 --- a/list_subtitles.py +++ b/list_subtitles.py @@ -60,7 +60,7 @@ def store_subtitles(file): conn_db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db')) c_db = conn_db.cursor() - c_db.execute("UPDATE table_episodes SET subtitles = ? WHERE path = ?", (str(actual_subtitles).encode('string_escape'), path_replace_reverse(file))) + c_db.execute("UPDATE table_episodes SET subtitles = ? WHERE path = ?", (actual_subtitles.encode('string_escape'), path_replace_reverse(file))) conn_db.commit() c_db.close()