@thisguy wrote:
I'm trying to figure out where the rejected reason is stored in the database for each entry. I'd like to get the last assessment and descriptive reason for each entry (accepted/rejected/ignored/etc reason).
2013-01-15 00:32 VERBOSE task jobNameHere REJECTED:
SomeShow#1 entry
by series plugin because quality already downloaded
2013-01-15 00:32 VERBOSE task jobNameHere REJECTED:SomeShow#2 entry - x264 / 720p
by series plugin because quality already downloaded
2013-01-15 00:32 VERBOSE series jobNameHere IgnoredSome Other Show entry
. Does not meet quality requirement480p
.I wanted to script some external alerting when certain things happen causing entries to be rejected, but I can't seem to find the rejected reason anywhere in the database. I'd rather not parse the log files, as a quick sqlite query would be the most appropriate.
Is there any database diagram or description of what's stored in each of the sqlite tables?
Here's the SQL I managed to build so far. It works fairly well, but only gives me details if/when an entry is accepted, so I'm not get the last run rejection information.
SELECT s.id AS series_id,
s.NAME,
se.identifier,
se.season,
number AS episode,
quality,
downloaded,
er.title,
first_seen,
h.url,
h.time AS acceptedTime,
h.details
FROM series s
LEFT OUTER JOIN series_episodes se
ON s.id = se.series_id
LEFT OUTER JOIN episode_releases er
ON er.episode_id = se.id
LEFT OUTER JOIN history h
ON h.title = er.title
WHERE s.id = 11
ORDER BY se.identifier DESC
Posts: 4
Participants: 3