[mythtv-users] Trouble Adding Channel

Mike Perkins mikep at randomtraveller.org.uk
Thu Feb 3 10:26:42 UTC 2022

On 02/02/2022 23:26, DryHeat122 wrote:
> On Sun, Jan 23, 2022 at 3:12 AM Mike Perkins <mikep at randomtraveller.org.uk>
> wrote:
>> On 23/01/2022 02:04, DryHeat122 wrote:
>>> On Sat, Jan 22, 2022, 2:39 PM Mike Perkins <mikep at randomtraveller.org.uk
>>> wrote:
>>>> On 22/01/2022 18:15, DryHeat122 wrote:
>>>>> On Fri, Jan 21, 2022 at 9:44 PM Stephen Worthington <
>>>>> stephen_agent at jsw.gen.nz> wrote:
>>>>>> On Fri, 21 Jan 2022 21:00:15 -0700, you wrote:
>>>>>>> I have tried to add a channel, TBSHD, 1049 on a cable box connected
>> to
>>>> my
>>>>>>> hdpvr but it's not working.
>>>>>>> In channel editor, I have chanel name TBSHD, channel number 1049,
>>>> callsign
>>>>>>> 11996, and service ID 1049. I entered the first two but I'm not sure
>>>> how
>>>>>>> the last two got set.
>>>>>>> This channel is enabled in Schedules Direct (I double checked) and I
>>>> have
>>>>>>> run mythfilldatabase after making this change.
>>>>>>> On the program guide the channel shows up but there are no program
>>>>>> entries,
>>>>>>> it just says Unknown (Unknown)
>>>>>>> How can I fix this?
>>>>>> You need to set the correct xmltvid for the channel, to match what
>>>>>> Schedules Direct provides.
>>>>>> I've done that, and no help.  Still no entries in the program guide.
>> The
>>>>> entry I made was I67890.json.schedulesdirect.org  I don't see any
>> errors
>>>>> regarding that channel in mythfilldatabase output.
>>>>> I tried to set everything else based on an example from another working
>>>>> channel. I still don't know how "service ID" got set. I may have set
>> that
>>>>> accidentally but I don't know if it matters, or indeed what that
>> setting
>>>> is
>>>>> for.  There doesn't seem to be a way to clear it so maybe it got set
>>>>> automatically after all.
>>>> I'm not sure where in the world you are but if you're using an xmltv
>>>> grabber to fill your schedule,
>>>> you'll need a corresponding entry in the .xmltv file which the grabber
>>>> runs. I don't think that just
>>>> filling in the field in the channel record is enough.
>>>> --
>>>> Mike Perkins
>>> I'm in the US.
>>> There doesn't seem to be any way to select an item from the xmltv file
>>> within the channel editor. I looked at the entry for 1048, and duplicated
>>> that with the channel ID shown in SD website for my lineup. Something is
>>> obviously not right, tho.
>> You can't do this from the channel editor. It is a text file somewhere
>> under your .mythtv directory
>> with the name corresponding to the name of your source and the extension
>> .xmltv.
>> Inside you should find some preamble info including your schedulesdirect
>> name and password and then
>> a line for each channel of interest (or not).
>> The channel will have a '=' for a channel you want and a '!' for a channel
>> that should be ignored.
>> In addition, channels not in the list will be ignored. So you need to find
>> a line that says:
>> channel=I67890.json.schedulesdirect.org
>> If it has a '!' change it to a '='. If it isn't there append a new line to
>> the end.
>> Note. It is possible that this is not the way it works in the US. I am
>> sure that someone more
>> familiar with that option will chime in if so.
>> --
>> Mike Perkins
> Just getting back to this problem. I have /home/mythtv/.mythtv/hdpvr.xmltv
> It only contains
> database=/home/mythtv/.xmltv/SchedulesDirect-hdpvr.DB
> lineup=USA-AZ02490-X
> 3rdparty-metadata=disabled
> mythtv-categories=enabled
> station-logo-order=
> There are no channel entries like the ones you describe so I'm reluctant to
> experiment by adding one unless someone says it's definitely the thing to
> do. I'm guessing the record in question is in SchedulesDirect-hdpvr.DB
Sorry for the noise. It looks like you're using the SQLite version, where all the info is obviously 
held on your local database.

I'm using the JSON version but /without/ the database. This version, like the older traditional 
xmltv methods, adds a line for each channel found and is therefore easy to check and to edit[1].

I'm guessing the only way for you to correct this would be to re-run the --configure job which ought 
to rebuild the database with the correct channels in it. If it hasn't appeared then, then you'll 
have to go back to SchedulesDirect and find out if there has been an oversight on their part.

[1] Since they are in the process of moving around a lot of the channels here in the UK, that is a 
job I'll be doing very soon now.


Mike Perkins

More information about the mythtv-users mailing list