1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 01:27:07 +00:00
This commit is contained in:
Louis Vézina 2017-11-27 15:56:50 -05:00
parent 69a74c5004
commit fcb3444984

View file

@ -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 = ?", (actual_subtitles.encode('string_escape'), path_replace_reverse(file)))
c_db.execute("UPDATE table_episodes SET subtitles = ? WHERE path = ?", (str(actual_subtitles), path_replace_reverse(file)))
conn_db.commit()
c_db.close()