Mailing List Archive

Using XMLTV source with mythexternrecorder keeps adding additional channels
I've got two IPTV recorders defined that utilise the same xmltv feed.

IPTVNZ is a FreeBox device
- 12 channels defined via iptv-nz.m3u8
- Video Source IPTV_NZ -> NZ xmltv epg feed with 30 channels

VLCNZ is an EXTERNAL device with 16 channels defined via
- 16 channels defined via vlc-nz-channels.conf
- Video Source VLC_NZ -> NZ xmltv epg feed with 30 channels

The grabber uses the same EPG data but I have two different sources to
avoid confusion.

running mythfilldatabase the IPTVNZ channel listing stays the same and any
non-matching channels in the EPG file are flagged and ignored.

2020-06-16 14:57:05.029634 I XMLTV config file is:
/home/mythfe/.mythtv/IPTV NZ.xmltv
2020-06-16 14:57:06.035537 N Unknown xmltv channel identifier: tv.11 -
Skipping channel.
2020-06-16 14:57:06.035737 N Unknown xmltv channel identifier: tv.12 -
Skipping channel.
2020-06-16 14:57:06.717274 N Unknown xmltv channel identifier: tv.21 -
Skipping channel.

Whilst with the EXTERNAL Feed the additional channels, which I don't want
to load into my MythTV environment, get added against the "VLC NZ"
sourceid.

2020-06-16 14:57:14.592501 I XMLTV config file is:
/home/mythfe/.mythtv/VLC NZ.xmltv
2020-06-16 14:57:20.231268 I Updated programs: 53 Unchanged programs: 5499
2020-06-16 14:57:20.262160 N Data fetching complete.


These are both using the same EPG data file https://i.mjh.nz/nz/epg.xml.gz
so I don't understand why one tuner/source works as I expect and the other
tuner doesn't.

I've taken a look at the code under
- libs/libmythtv/programdata.cpp
and in theory it should work as I expect. At present the only work around
I've got is to tag the unwanted channels as NOT visible.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Using XMLTV source with mythexternrecorder keeps adding additional channels [ In reply to ]
> I've got two IPTV recorders defined that utilise the same xmltv feed.
>
> IPTVNZ is a FreeBox device
> - 12 channels defined via iptv-nz.m3u8
> - Video Source IPTV_NZ -> NZ xmltv epg feed with 30 channels
>
> VLCNZ is an EXTERNAL device with 16 channels defined via
> - 16 channels defined via vlc-nz-channels.conf
> - Video Source VLC_NZ -> NZ xmltv epg feed with 30 channels
>
> The grabber uses the same EPG data but I have two different sources to
> avoid confusion.
>
> running mythfilldatabase the IPTVNZ channel listing stays the same and any
> non-matching channels in the EPG file are flagged and ignored.
>
> 2020-06-16 14:57:05.029634 I XMLTV config file is:
> /home/mythfe/.mythtv/IPTV NZ.xmltv
> 2020-06-16 14:57:06.035537 N Unknown xmltv channel identifier: tv.11 -
> Skipping channel.
> 2020-06-16 14:57:06.035737 N Unknown xmltv channel identifier: tv.12 -
> Skipping channel.
> 2020-06-16 14:57:06.717274 N Unknown xmltv channel identifier: tv.21 -
> Skipping channel.
>
> Whilst with the EXTERNAL Feed the additional channels, which I don't want
> to load into my MythTV environment, get added against the "VLC NZ"
> sourceid.
>
> 2020-06-16 14:57:14.592501 I XMLTV config file is:
> /home/mythfe/.mythtv/VLC NZ.xmltv
> 2020-06-16 14:57:20.231268 I Updated programs: 53 Unchanged programs:
> 5499
> 2020-06-16 14:57:20.262160 N Data fetching complete.
>
>
> These are both using the same EPG data file https://i.mjh.nz/nz/epg.xml.gz
> so I don't understand why one tuner/source works as I expect and the other
> tuner doesn't.
>
> I've taken a look at the code under
> - libs/libmythtv/programdata.cpp
> and in theory it should work as I expect. At present the only work around
> I've got is to tag the unwanted channels as NOT visible.

Ok digging a little deeper

Looking at ./mythtv/mythtv/programs/mythfilldatabase/channeldata.cpp
- bool ChannelData::insert_chan(uint sourceid) is returning true

and then

Looking at ./mythtv/mythtv/libs/libmythtv/cardutil.h
- EXTERNAL isn't IsUnscanable so that can't be the trigger
- EXTERNAL isn't IsEncoder so that must be the trigger

AS I can defined a scanner/tuner for an EXTERNAL device isn't this logic
wrong, or do we need this logic for another part of MythTV?

Steven



_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Using XMLTV source with mythexternrecorder keeps adding additional channels [ In reply to ]
On Tue, 16 Jun 2020 15:13:52 +1200, you wrote:

>I've got two IPTV recorders defined that utilise the same xmltv feed.
>
>IPTVNZ is a FreeBox device
> - 12 channels defined via iptv-nz.m3u8
> - Video Source IPTV_NZ -> NZ xmltv epg feed with 30 channels
>
>VLCNZ is an EXTERNAL device with 16 channels defined via
> - 16 channels defined via vlc-nz-channels.conf
> - Video Source VLC_NZ -> NZ xmltv epg feed with 30 channels
>
>The grabber uses the same EPG data but I have two different sources to
>avoid confusion.
>
>running mythfilldatabase the IPTVNZ channel listing stays the same and any
>non-matching channels in the EPG file are flagged and ignored.
>
>2020-06-16 14:57:05.029634 I XMLTV config file is:
>/home/mythfe/.mythtv/IPTV NZ.xmltv
>2020-06-16 14:57:06.035537 N Unknown xmltv channel identifier: tv.11 -
>Skipping channel.
>2020-06-16 14:57:06.035737 N Unknown xmltv channel identifier: tv.12 -
>Skipping channel.
>2020-06-16 14:57:06.717274 N Unknown xmltv channel identifier: tv.21 -
>Skipping channel.
>
>Whilst with the EXTERNAL Feed the additional channels, which I don't want
>to load into my MythTV environment, get added against the "VLC NZ"
>sourceid.
>
>2020-06-16 14:57:14.592501 I XMLTV config file is:
>/home/mythfe/.mythtv/VLC NZ.xmltv
>2020-06-16 14:57:20.231268 I Updated programs: 53 Unchanged programs: 5499
>2020-06-16 14:57:20.262160 N Data fetching complete.
>
>
>These are both using the same EPG data file https://i.mjh.nz/nz/epg.xml.gz
>so I don't understand why one tuner/source works as I expect and the other
>tuner doesn't.
>
>I've taken a look at the code under
> - libs/libmythtv/programdata.cpp
>and in theory it should work as I expect. At present the only work around
>I've got is to tag the unwanted channels as NOT visible.

If you add "--only-update-guide" to the mythfilldatabase command line,
that will prevent it from doing any channel updates or adds. If you
are running mythfilldatabase internally from mythbackend, you may need
to turn that off and run it externally from systemd or a cron job in
order to add that option.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Using XMLTV source with mythexternrecorder keeps adding additional channels [ In reply to ]
When I switched from Data Direct to XMLTV I had an issue where mythbackend
kept running mythfilldatabase with the "--dd-grab-all" option. It took me a
little while to figure out that option was being used because it was
configured in the datatbase as the value for MythFillDatabaseArgs. Once I
cleared that option, mythfilldatabase started running correctly for me when
spawned by mythbackend.

If you always want "--only-update-guide" to be passed to mythfilldatatbase
when run by mythbackend, you could add that value to MythFillDatabaseAgs in
the database. This could allow you to let mythbackend manage the schedule
and not have to create your own cron to run it.

I am not a myth database expert by any stretch, and I have not found a lot
on that particular setting. But you can see what value you have by logging
into your database and running:

select value,data from mythconverg.settings where value =
'MythFillDatabaseArgs';

If you have any other options in there currently, you'll want to append
"--only-update-guide". If it's blank, you can just set it:

update settings set data = '--only-update-guide' where value =
'MythFillDatabaseArgs';

Hope that helps,
Erik

On Mon, Jun 15, 2020 at 11:29 PM Stephen Worthington <
stephen_agent@jsw.gen.nz> wrote:

> On Tue, 16 Jun 2020 15:13:52 +1200, you wrote:
>
> >I've got two IPTV recorders defined that utilise the same xmltv feed.
> >
> >IPTVNZ is a FreeBox device
> > - 12 channels defined via iptv-nz.m3u8
> > - Video Source IPTV_NZ -> NZ xmltv epg feed with 30 channels
> >
> >VLCNZ is an EXTERNAL device with 16 channels defined via
> > - 16 channels defined via vlc-nz-channels.conf
> > - Video Source VLC_NZ -> NZ xmltv epg feed with 30 channels
> >
> >The grabber uses the same EPG data but I have two different sources to
> >avoid confusion.
> >
> >running mythfilldatabase the IPTVNZ channel listing stays the same and any
> >non-matching channels in the EPG file are flagged and ignored.
> >
> >2020-06-16 14:57:05.029634 I XMLTV config file is:
> >/home/mythfe/.mythtv/IPTV NZ.xmltv
> >2020-06-16 14:57:06.035537 N Unknown xmltv channel identifier: tv.11 -
> >Skipping channel.
> >2020-06-16 14:57:06.035737 N Unknown xmltv channel identifier: tv.12 -
> >Skipping channel.
> >2020-06-16 14:57:06.717274 N Unknown xmltv channel identifier: tv.21 -
> >Skipping channel.
> >
> >Whilst with the EXTERNAL Feed the additional channels, which I don't want
> >to load into my MythTV environment, get added against the "VLC NZ"
> >sourceid.
> >
> >2020-06-16 14:57:14.592501 I XMLTV config file is:
> >/home/mythfe/.mythtv/VLC NZ.xmltv
> >2020-06-16 14:57:20.231268 I Updated programs: 53 Unchanged programs:
> 5499
> >2020-06-16 14:57:20.262160 N Data fetching complete.
> >
> >
> >These are both using the same EPG data file
> https://i.mjh.nz/nz/epg.xml.gz
> >so I don't understand why one tuner/source works as I expect and the other
> >tuner doesn't.
> >
> >I've taken a look at the code under
> > - libs/libmythtv/programdata.cpp
> >and in theory it should work as I expect. At present the only work around
> >I've got is to tag the unwanted channels as NOT visible.
>
> If you add "--only-update-guide" to the mythfilldatabase command line,
> that will prevent it from doing any channel updates or adds. If you
> are running mythfilldatabase internally from mythbackend, you may need
> to turn that off and run it externally from systemd or a cron job in
> order to add that option.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: Using XMLTV source with mythexternrecorder keeps adding additional channels [ In reply to ]
> On Tue, 16 Jun 2020 15:13:52 +1200, you wrote:
>
>>I've got two IPTV recorders defined that utilise the same xmltv feed.
>>
>>IPTVNZ is a FreeBox device
>> - 12 channels defined via iptv-nz.m3u8
>> - Video Source IPTV_NZ -> NZ xmltv epg feed with 30 channels
>>
>>VLCNZ is an EXTERNAL device with 16 channels defined via
>> - 16 channels defined via vlc-nz-channels.conf
>> - Video Source VLC_NZ -> NZ xmltv epg feed with 30 channels
>>
>>The grabber uses the same EPG data but I have two different sources to
>>avoid confusion.
>>
>>running mythfilldatabase the IPTVNZ channel listing stays the same and
>> any
>>non-matching channels in the EPG file are flagged and ignored.
>>
>>2020-06-16 14:57:05.029634 I XMLTV config file is:
>>/home/mythfe/.mythtv/IPTV NZ.xmltv
>>2020-06-16 14:57:06.035537 N Unknown xmltv channel identifier: tv.11 -
>>Skipping channel.
>>2020-06-16 14:57:06.035737 N Unknown xmltv channel identifier: tv.12 -
>>Skipping channel.
>>2020-06-16 14:57:06.717274 N Unknown xmltv channel identifier: tv.21 -
>>Skipping channel.
>>
>>Whilst with the EXTERNAL Feed the additional channels, which I don't want
>>to load into my MythTV environment, get added against the "VLC NZ"
>>sourceid.
>>
>>2020-06-16 14:57:14.592501 I XMLTV config file is:
>>/home/mythfe/.mythtv/VLC NZ.xmltv
>>2020-06-16 14:57:20.231268 I Updated programs: 53 Unchanged programs:
>> 5499
>>2020-06-16 14:57:20.262160 N Data fetching complete.
>>
>>
>>These are both using the same EPG data file
>> https://i.mjh.nz/nz/epg.xml.gz
>>so I don't understand why one tuner/source works as I expect and the
>> other
>>tuner doesn't.
>>
>>I've taken a look at the code under
>> - libs/libmythtv/programdata.cpp
>>and in theory it should work as I expect. At present the only work around
>>I've got is to tag the unwanted channels as NOT visible.
>
> If you add "--only-update-guide" to the mythfilldatabase command line,
> that will prevent it from doing any channel updates or adds. If you
> are running mythfilldatabase internally from mythbackend, you may need
> to turn that off and run it externally from systemd or a cron job in
> order to add that option.

Hi Stephen - yes that is a workaround, just trying to understand why one
tuner causes a channel load and another doesn't

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org