[mythtv-users] recording priority not understood
Stephen Baker
stephen at wildwood.baker.org
Wed Jan 13 17:44:09 UTC 2016
I am trying to set the preference order for input selection. I can't
seem to adjust which input is selected for a particular recording
without explicitly choosing that input in a custom record rule. I'd
like to use the channel recpriority instead. I have tried to create a
custom priority, but nothing seems to change the preference order.
I have 3 sources:
- OTA (2 tuners) sourceid=2
- OTA (1 tuner) sourceid=3
- Cable (6 tuners) sourceid=4
Not all channels are available on all sources, but there is a lot of
overlap in the on the broadcast spectrum. Where there is overlap, the
preference is 2,4,3. I'd like to make sense of the record priority and
be able to assign preferences based upon channel. I must be missing
the obvious.
The backend is fixes/0.27 (a62fc0d)
This is my logic using the sql
MariaDB [mythconverg]> select
c.chanid,c.name,c.sourceid,c.recpriority,i.cardid,i.recpriority,schedorder
from channel c,cardinput i where name = 'KSDK' and
c.sourceid=i.sourceid and visible != 0 order by
c.recpriority+i.recpriority desc,c.name,c.sourceid,i.cardid;
+--------+------+----------+-------------+--------+-------------+------
------+
| chanid | name | sourceid | recpriority | cardid | recpriority |
schedorder | actual
+--------+------+----------+-------------+--------+-------------+------
------+
| 3051 | KSDK | 3 | 3 | 20 | 5 |
8 | 1
| 3051 | KSDK | 3 | 3 | 30 | 5 |
9 | 2
| 2051 | KSDK | 2 | 0 | 10 | 5 |
8 | 9
| 4705 | KSDK | 4 | 0 | 1 | 3 |
2 | 3
| 4705 | KSDK | 4 | 0 | 2 | 3 |
3 | 4
| 4705 | KSDK | 4 | 0 | 3 | 3 |
4 | 5
| 4705 | KSDK | 4 | 0 | 4 | 3 |
5 | 6
| 4705 | KSDK | 4 | 0 | 5 | 3 |
6 | 7
| 4705 | KSDK | 4 | 0 | 6 | 3 |
7 | 8
+--------+------+----------+-------------+--------+-------------+------
------+
9 rows in set (0.01 sec)
MariaDB [mythconverg]> select
c.chanid,c.name,c.sourceid,c.recpriority,i.cardid,i.recpriority,schedorder
from channel c,cardinput i where name = 'KMOV' and
c.sourceid=i.sourceid and visible != 0 order by
c.recpriority+i.recpriority desc,c.name,c.sourceid,i.cardid;
+--------+------+----------+-------------+--------+-------------+------
------+
| chanid | name | sourceid | recpriority | cardid | recpriority |
schedorder | actual
+--------+------+----------+-------------+--------+-------------+------
------+
| 2041 | KMOV | 2 | 1 | 10 | 5 |
8 | 7
| 4704 | KMOV | 4 | 0 | 1 | 3 |
2 | 1
| 4704 | KMOV | 4 | 0 | 2 | 3 |
3 | 2
| 4704 | KMOV | 4 | 0 | 3 | 3 |
4 | 3
| 4704 | KMOV | 4 | 0 | 4 | 3 |
5 | 4
| 4704 | KMOV | 4 | 0 | 5 | 3 |
6 | 5
| 4704 | KMOV | 4 | 0 | 6 | 3 |
7 | 6
+--------+------+----------+-------------+--------+-------------+------
------+
7 rows in set (0.00 sec)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160113/fa255371/attachment-0001.html>
More information about the mythtv-users
mailing list