Navigation Menu

Skip to content

Commit

Permalink
Add a "Priority channel" recording rule filter.
Browse files Browse the repository at this point in the history
Channels with recpriority greater than 0 match this filter.
  • Loading branch information
gigem committed Nov 19, 2019
1 parent 56d7216 commit 21f2b55
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mythtv/bindings/perl/MythTV.pm
Expand Up @@ -116,7 +116,7 @@ package MythTV;
# schema version supported in the main code. We need to check that the schema
# version in the database is as expected by the bindings, which are expected
# to be kept in sync with the main code.
our $SCHEMA_VERSION = "1356";
our $SCHEMA_VERSION = "1357";

# NUMPROGRAMLINES is defined in mythtv/libs/libmythtv/programinfo.h and is
# the number of items in a ProgramInfo QStringList group used by
Expand Down
2 changes: 1 addition & 1 deletion mythtv/bindings/python/MythTV/static.py
Expand Up @@ -5,7 +5,7 @@
"""

OWN_VERSION = (30,0,-1,0)
SCHEMA_VERSION = 1356
SCHEMA_VERSION = 1357
NVSCHEMA_VERSION = 1007
MUSICSCHEMA_VERSION = 1024
PROTO_VERSION = '91'
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythversion.h
Expand Up @@ -75,7 +75,7 @@
* mythtv/bindings/php/MythBackend.php
*/

#define MYTH_DATABASE_VERSION "1356"
#define MYTH_DATABASE_VERSION "1357"


MBASE_PUBLIC const char *GetMythSourceVersion();
Expand Down
12 changes: 12 additions & 0 deletions mythtv/libs/libmythtv/dbcheck.cpp
Expand Up @@ -3510,6 +3510,18 @@ nullptr
return false;
}

if (dbver == "1356")
{
const char *updates[] = {
"REPLACE INTO recordfilter (filterid, description, clause, "
" newruledefault) "
" VALUES (12, 'Priority channel', 'channel.recpriority > 0', 0)",
nullptr
};
if (!performActualUpdate(updates, "1357", dbver))
return false;
}

return true;
}

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recordingrule.h
Expand Up @@ -34,7 +34,7 @@ class MTV_PUBLIC RecordingRule
Q_DECLARE_TR_FUNCTIONS(RecordingRule);

public:
static const int kNumFilters = 12;
static const int kNumFilters = 16;

RecordingRule();
~RecordingRule() = default;
Expand Down

0 comments on commit 21f2b55

Please sign in to comment.