% import os % import sqlite3 % from get_general_settings import * %if get_general_settings()[24] == "True": % monitored_only_query_string = ' AND monitored = "True"' %else: % monitored_only_query_string = "" %end % conn = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'), timeout=30) % c = conn.cursor() % wanted_series = c.execute("SELECT COUNT(*) FROM table_episodes WHERE missing_subtitles != '[]'" + monitored_only_query_string).fetchone() % wanted_movies = c.execute("SELECT COUNT(*) FROM table_movies WHERE missing_subtitles != '[]'" + monitored_only_query_string).fetchone() % c.close()
Loading...
% include('menu.tpl') % import os % import sqlite3 % conn = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'), timeout=30) % c = conn.cursor() % integration = c.execute("SELECT use_sonarr, use_radarr FROM table_settings_general").fetchone() % c.close()
% include('footer.tpl')