From 387ece3b1ad9760caf63301474504e3fb6b60425 Mon Sep 17 00:00:00 2001 From: Karl Dietz Date: Mon, 17 Jun 2013 10:49:55 +0200 Subject: [PATCH] improve documentation of the chanid generation scheme Patch by Robert Kulagowski Fixes #10779 --- mythtv/libs/libmythtv/dbcheck.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mythtv/libs/libmythtv/dbcheck.cpp b/mythtv/libs/libmythtv/dbcheck.cpp index 0bebaf8fe83..a73b39e9727 100644 --- a/mythtv/libs/libmythtv/dbcheck.cpp +++ b/mythtv/libs/libmythtv/dbcheck.cpp @@ -204,8 +204,9 @@ analog channels, us, us-cable, pal, etc. \section channel_table Channel Table (channel) -The primary key, 'chanid' is generated by combining the source id with -a unique number from 0 to 99. +The primary key, 'chanid' is generated by multiplying the sourceid times +1000 and adding the channel number to create a unique chanid. +\sa ChannelUtil::CreateChanId The 'channum' field contains the channel number to be input to jump to a channel.