Skip to content

Commit

Permalink
Remove filter on $.RecordSuccess for timers; doesn't seem reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
djp952 committed Feb 7, 2020
1 parent ea88878 commit 10e3c90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pvr.hdhomerundvr/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
v3.2.0 (2020.02.XX)
v3.2.0 (2020.02.07)
- Update SQLite database engine to version 3.31.1
- Update cURL library to version 7.68.0
- Use "Filename" attribute provided by HDHomeRun RECORD instead of manually generating EDL file name(s) when available
Expand Down
2 changes: 1 addition & 1 deletion src/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,7 @@ void enumerate_timers(sqlite3* instance, int maxdays, enumerate_timers_callback

// recordingruleid | parenttype | timerid | channelid | seriesid | starttime | endtime | title | synopsis
auto sql = "with guidenumbers(guidenumber) as (select distinct(json_extract(value, '$.GuideNumber')) as guidenumber from lineup, json_each(lineup.data)), "
"recorded(programid) as (select json_extract(recording.data, '$.ProgramID') from recording where json_extract(recording.data, '$.RecordSuccess') = 1) "
"recorded(programid) as (select json_extract(recording.data, '$.ProgramID') from recording) "
"select case when json_extract(recordingrule.data, '$.DateTimeOnly') is not null then recordingrule.recordingruleid else "
"(select recordingruleid from recordingrule where json_extract(recordingrule.data, '$.DateTimeOnly') is null and seriesid = episode.seriesid limit 1) end as recordingruleid, "
"case when json_extract(recordingrule.data, '$.DateTimeOnly') is not null then 1 else 0 end as parenttype, "
Expand Down

0 comments on commit 10e3c90

Please sign in to comment.