<div dir="ltr"><div>Progress! I discovered I was pointing to the wrong script in mythtv-setup. Once I corrected that, I went step by step through the instructions at <a href="https://www.mythtv.org/wiki/XMLTV#Schedules_Direct_Setup">https://www.mythtv.org/wiki/XMLTV#Schedules_Direct_Setup</a>.  <br></div><div><br></div><div>I ran mythfilldatabase thusly: "sudo -u mythtv mythfilldatabase". It starts populating the database, but I notice that I get errors generating the temporary files for populating the "channels" subfolder for the png graphics. The owner and group ID's for those folders are not set to mythtv:mythtv. If I run mythtv-setup again, I notice I'm getting the "no </tv> tag" error message again. Do the permissions need to be reset for the subfolders off of /home/mythtv/.mythtv?</div><div><br></div><div><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 Thu, May 20, 2021 at 1:43 PM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</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 Thu, 20 May 2021 09:26:47 -0400, you wrote:<br>
<br>
>I keep getting the following error when I run mythfilldatabase (as user<br>
>mythtv):<br>
><br>
>> 2021-05-20 09:23:17.183995 E  XMLTV grabber returned error code 1<br>
>> 2021-05-20 09:23:17.433454 E  Malformed XML file, missing </tv> element,<br>
>> at line 1, Premature end of document.<br>
>><br>
><br>
>I've Googled discussions in the past on this issue, but they failed to<br>
>identify what the problem is and what solved it.<br>
><br>
>FWIW, I've run the grabber independently and it runs perfectly. The error<br>
>looks to be on the Mythtv side.<br>
><br>
>Any insights?<br>
<br>
When mythfilldatabase says </tv> is missing "at line 1" as you are<br>
seeing, that normally means it has read a 0 byte file instead of real<br>
XMLTV data.  If the  line number is a fairly large number, then it is<br>
likely reading a truncated XMLTV file.<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>