mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-13 02:07:47 +08:00
Test
This commit is contained in:
parent
97c1c05cee
commit
2d0e09dff2
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ def store_subtitles(file):
|
||||||
conn_db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))
|
conn_db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))
|
||||||
c_db = conn_db.cursor()
|
c_db = conn_db.cursor()
|
||||||
|
|
||||||
c_db.execute("UPDATE table_episodes SET subtitles = ? WHERE path = ?", (str(actual_subtitles), path_replace_reverse(file)))
|
c_db.execute("UPDATE table_episodes SET subtitles = ? WHERE path = ?", (str(actual_subtitles).encode('string_escape'), path_replace_reverse(file)))
|
||||||
conn_db.commit()
|
conn_db.commit()
|
||||||
|
|
||||||
c_db.close()
|
c_db.close()
|
||||||
|
|
Loading…
Reference in a new issue