<div dir="ltr"><div>I figured it out. My .mythtv folder had two .xmltv files generated during configuration: FIOS and broadcast. Each had both lineups listed. I edited them to remove the out of place lineups: the FIOS lineup in broadcast.xmltv, and vice versa. Then I removed the channels and re-added them. <br></div><div><br></div><div>My next problem is integrating a Harmony 650 remote with FLIRC. I think I have the wrong Harmony profile selected as key buttons don't work: "OK" and "Back". Any thoughts?</div><div><br></div><div></div><div>Steve<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><br></div><div>Steve Greene<br>(301) 842-8923</div><div><a href="http://historicity.co" target="_blank">historicity.co</a><br></div>An independent archival professional specializing in still photography, moving images and recorded sound.<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 28, 2021 at 3:22 PM Simon Hobson <<a href="mailto:linux@thehobsons.co.uk">linux@thehobsons.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Mike Perkins <<a href="mailto:mikep@randomtraveller.org.uk" target="_blank">mikep@randomtraveller.org.uk</a>> wrote:<br>
<br>
>>> I just got Schedules Direct set up (kind of) in xmltv.<br>
<br>
> I let the myth backend run mythfilldatabase here, using schedulesdirect information, and I don't have to do any of that.<br>
> <br>
> I have two sources with completely different lineups ...<br>
<br>
<br>
Jim Morton <<a href="mailto:jimmorton01@gmail.com" target="_blank">jimmorton01@gmail.com</a>> wrote:<br>
<br>
> You need (at least) 2 lineups at Schedules Direct.<br>
<br>
<br>
Hmm, I was under the impression that with XMLTV you don't use "lineups" - are you using the JSON service, or the older Schedules Direct service (which does use lineups) ? Or are you referring to the 'channels=...' entry in xmltv's config file as a 'lineup' ?<br>
<br>
<br>
My script (I use a script as I do a bit of filtering on the listings) builds a config file that looks like :<br>
> cache=/var/lib/mythtv/.xmltv/tv_grab_sd_json.cache<br>
> channel-id-format=mythtv<br>
> username=<user><br>
> password=<pass)<br>
> mode=channels<br>
> channels=GBR-1000040-DEFAULT<br>
> channel=102471<br>
> channel=103817<br>
> channel=...<br>
> ...<br>
<br>
After filtering the listings (remove all the 'To Be Announced' entries), it then uses :<br>
> mythfilldatabase --only-update-guide --sourceid 1 --file --xmlfile ${xmlfile2} 2>&1<br>
<br>
to load them.<br>
<br>
<br>
As an aside, it use this code to get the active channel ID from the database :<br>
> mysql --host=localhost --user=mythtv --database=mythconverg --password='<pass>' \<br>
> -e "select distinct(xmltvid) from channel where visible=1 and useonairguide=0 order by xmltvid ;" |<br>
> grep '[0-9][0-9][0-9][0-9][0-9]' |<br>
> sed -e 's/^/channel=/' >> ${conf}<br>
So grabbing listings is a maintenance free operation in terms of channel IDs - once they are set in MythTV.<br>
<br>
Simon<br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div>