<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 7, 2023 at 1:48 AM Douglas Peale <<a href="mailto:Douglas_Peale@comcast.net">Douglas_Peale@comcast.net</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">On 5/6/23 22:25, Will Dormann wrote:<br>
> Well, I suppose I celebrated too early in updating MythTV.  After my SchedulesDirect data expired, I now realize that I have <br>
> no program guide since I did the update.<br>
><br>
> Apparently "DataDirect" is no longer a things that's supported, and I now need to use XMLTV.  The problem is, I can't seem to <br>
> find any guidance that I can understand.<br>
><br>
> According to <a href="https://www.mythtv.org/wiki/XMLTV" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/XMLTV</a> , I should be able to just run mythtv-setup and tell MythTV to use XMLTV, and <br>
> everything should be fine.   When exiting mythtv-setup, and I'm prompted to run mythfilldatabase, I see a brief terminal <br>
> window that shows the usage for how to run mythfilldatabase.  After a bit of hassle, I finally realized that I had a <br>
> "--remove-new-channels" option set in my MythFillDatabaseArgs in the settings table. After removing this, the error went away.<br>
><br>
> However, there's still nothing in my schedules.  There is no configuration file in $HOME/.xmltv.<br>
><br>
> So I figure I'd try the command line setup as outlined at <a href="https://www.mythtv.org/wiki/XMLTV" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/XMLTV</a><br>
><br>
> I ran:<br>
> /usr/bin/tv_grab_zz_sdjson --configure --config-file $HOME/.mythtv/FiOS.xmltv<br>
><br>
> only to be asked to select what sort of cable lineup I have in my zipcode.   Which is somewhat surprising to me, given that <br>
> I've already configured exactly how my channel lineup is in SchedulesDirect directly.<br>
><br>
> Elsewhere in this list I saw the advice to run --manage-lineups instead of --configure.  I tried this, and it seems that I <br>
> could add a generic FiOS lineup, but not the one that I had already configured in SchedulesDirect that matches what I actually <br>
> subscribe to.<br>
><br>
> When I try to edit the channel lineup, I get:<br>
>> Select one: [0,1,2,3,4,5 (default=0)] 5<br>
>><br>
>> Database has not been initialized (or cannot be opened)<br>
><br>
> Nothing I've tried has resulted in any .xmltv file being written. I do have a SchedulesDirect.DB in my ~/.xmltv directory.<br>
><br>
> All of this has been quite frustrating.  Does anybody have any guidance on how a normal human being can update from an old <br>
> (DataDirect SchedulesDirect) configuration to a new one that uses XMLTV?<br>
><br>
><br>
> Thanks<br>
> -WD<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>
<br>
One thing that I did not get from the wiki is that you MUST run tv_grab_zz_sdjson as user mythtv with user mythtv's environment.<br>
<br>
Running this from within mythbackendsetup does not work since it will save the config files in your local environment.<br>
<br>
I found that I was able to do this by running:<br>
<br>
sudo runuser -l mythtv<br>
<br>
which switches you to a shell as user mythtv in the mythtv environment, then running:<br>
<br>
tv_grab_zz_sdjson --configure --config-file $HOME/.mythtv/North.xmltv<br>
<br>
exit<br>
<br>
where you replace the word "North" with whatever name you called your "video source" when you set it up.<br>
<br>
Look in /var/log/mythtv/mythfilldatabase.log for clues about whatever else is going on.<br>
<br>
everything else in <a href="https://www.mythtv.org/wiki/XMLTV" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/XMLTV</a> made enough sense to me for me to get it working.<br><br></blockquote><div><br></div><div>I have XMLTV on ubuntu/debian based systems working. What I do is basically follow the wiki exactly which means that I don't rename anything.  So when I get back to mythtv-setup I delete all video sources and create a new one called "SD". I select the Multinational json sqlite grabber and then scan.</div><div><br></div><div>The Wiki says do this as user 'mythtv'  and it means it since the backend.service runs a user mythtv.</div><div><br></div><div>Just make sure you add your lineup by zip code if your country uses that. The questions asked require mostly defaults if you use SD as the video source name. </div><div><br></div><div><pre style="font-family:monospace,Courier;color:black;background-color:rgb(249,249,249);border:1px solid rgb(221,221,221);padding:1em;white-space:pre-wrap;line-height:1.3em;font-size:14px">tv_grab_zz_sdjson_sqlite --manage-lineups --config-file $HOME/.mythtv/SD.xmltv</pre><pre style="font-family:monospace,Courier;color:black;background-color:rgb(249,249,249);border:1px solid rgb(221,221,221);padding:1em;white-space:pre-wrap;line-height:1.3em;font-size:14px"><pre style="font-family:monospace,Courier;border:1px solid rgb(221,221,221);padding:1em;white-space:pre-wrap;line-height:1.3em">tv_grab_zz_sdjson_sqlite --configure --config-file $HOME/.mythtv/SD.xmltv</pre><pre style="font-family:monospace,Courier;border:1px solid rgb(221,221,221);padding:1em;white-space:pre-wrap;line-height:1.3em">tv_grab_zz_sdjson_sqlite --days 0 --config-file $HOME/.mythtv/SD.xmltv
tv_grab_zz_sdjson_sqlite --manage-lineups --config-file $HOME/.mythtv/SD.xmltv</pre></pre></div></div></div>