|
|
|
@ -15,10 +15,6 @@ def history_log(action, sonarrSeriesId, sonarrEpisodeId, description, video_path
|
|
|
|
|
db = sqlite3.connect(os.path.join(args.config_dir, 'db', 'bazarr.db'), timeout=30)
|
|
|
|
|
c = db.cursor()
|
|
|
|
|
|
|
|
|
|
if forced:
|
|
|
|
|
language = language + ":forced"
|
|
|
|
|
|
|
|
|
|
# Get Sonarr API URL from database config table
|
|
|
|
|
history = c.execute(
|
|
|
|
|
'''INSERT INTO table_history(action, sonarrSeriesId, sonarrEpisodeId, timestamp, description, video_path, language, provider, score) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)''',
|
|
|
|
|
(action, sonarrSeriesId, sonarrEpisodeId, time.time(), description, video_path, language, provider, score))
|
|
|
|
|