1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-27 01:57:33 +00:00
This commit is contained in:
Louis Vézina 2019-10-28 20:53:32 -04:00
parent fe6758858a
commit 9981df48af

View file

@ -11,7 +11,6 @@ import requests
from whichcraft import which
from get_args import args
from config import settings, url_sonarr, url_radarr
from database import database
from subliminal import region as subliminal_cache_region
import datetime
@ -20,6 +19,7 @@ import glob
def history_log(action, sonarrSeriesId, sonarrEpisodeId, description, video_path=None, language=None, provider=None,
score=None, forced=False):
from database import database
database.execute("INSERT INTO table_history (action, sonarrSeriesId, sonarrEpisodeId, timestamp, description,"
"video_path, language, provider, score) VALUES (?,?,?,?,?,?,?,?,?)", (action, sonarrSeriesId,
sonarrEpisodeId, time.time(),
@ -29,6 +29,7 @@ def history_log(action, sonarrSeriesId, sonarrEpisodeId, description, video_path
def history_log_movie(action, radarrId, description, video_path=None, language=None, provider=None, score=None,
forced=False):
from database import database
database.execute("INSERT INTO table_history_movie (action, radarrId, timestamp, description, video_path, language, "
"provider, score) VALUES (?,?,?,?,?,?,?,?)", (action, radarrId, time.time(), description,
video_path, language, provider, score))