% import os % import sqlite3 % conn = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'), timeout=30) % c = conn.cursor() % wanted = c.execute("SELECT COUNT(*) FROM table_episodes WHERE missing_subtitles != '[]'").fetchone()
Series
History
% if wanted[0] > 0:
{{wanted[0]}}
% end
Wanted
Settings
System
% restart_required = c.execute("SELECT updated, configured FROM table_settings_general").fetchone() % conn.commit() % c.close() % if restart_required[0] == 1 and restart_required[1] == 1:
Bazarr need to be restarted to apply last update and changes to general settings.
% elif restart_required[0] == 1:
Bazarr need to be restarted to apply last update.
% elif restart_required[1] == 1:
Bazarr need to be restarted to apply changes to general settings.
% end