This commit is contained in:
Louis Vézina 2017-11-16 13:46:30 -05:00
parent e1b972c561
commit 917526340d
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,8 @@ def series_download_subtitles(no):
list_missing_subtitles(no)
def wanted_download_subtitles(path):
#conn_db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))
#c_db = conn_db.cursor()
conn_db = sqlite3.connect(os.path.join(os.path.dirname(__file__), '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()
#c_db.close()