diff options
Diffstat (limited to 'get_subtitle.py')
-rw-r--r-- | get_subtitle.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/get_subtitle.py b/get_subtitle.py index b51b49cdc..5d905d1b3 100644 --- a/get_subtitle.py +++ b/get_subtitle.py @@ -27,7 +27,7 @@ def download_subtitle(path, language, hi, providers): return None def series_download_subtitles(no): - conn_db = sqlite3.connect('bazarr.db') + conn_db = sqlite3.connect('data/db/bazarr.db') c_db = conn_db.cursor() episodes_details = c_db.execute("SELECT path, missing_subtitles, sonarrEpisodeId FROM table_episodes WHERE path = ?", (no,)).fetchall() series_details = c_db.execute("SELECT hearing_impaired FROM table_shows WHERE sonarrSeriesId = ?", (no,)).fetchone() @@ -47,7 +47,7 @@ def series_download_subtitles(no): list_missing_subtitles(no) def wanted_download_subtitles(path): - conn_db = sqlite3.connect('bazarr.db') + conn_db = sqlite3.connect('data/db/bazarr.db') c_db = conn_db.cursor() episodes_details = c_db.execute("SELECT table_episodes.path, table_episodes.missing_subtitles, table_episodes.sonarrEpisodeId, table_episodes.sonarrSeriesId, table_shows.hearing_impaired FROM table_episodes INNER JOIN table_shows on table_shows.sonarrSeriesId = table_episodes.sonarrSeriesId WHERE table_episodes.path = ? AND missing_subtitles != '[]'", (path_replace_reverse(path),)).fetchall() enabled_providers = c_db.execute("SELECT name FROM table_settings_providers WHERE enabled = 1").fetchall() |