<html><head></head><body><div>On Thu, 2021-05-20 at 09:26 -0400, Steve Greene wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>I keep getting the following error when I run mythfilldatabase (as user mythtv):</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>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, at line 1, Premature end of document.</div><br></blockquote><div><br></div><div>I've Googled discussions in the past on this issue, but they failed to identify what the problem is and what solved it. <br></div><div><br></div><div>FWIW, I've run the grabber independently and it runs perfectly. The error looks to be on the Mythtv side.</div><div><br></div><div>Any insights?</div><div><br></div><div>Thanks.<br></div><div><div><div dir="ltr" class="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://email.mg.glenb.net/c/eJwlzDkOwyAQQNHTmC4IGLNMQZEm9wBmbCx5iTCJ5NvHUqTfvOZTLFMiO4olulzYqEnrDE77RCZ4HyDkQGpkE5CAgnIWZUkbr8Oo5pX3LHfuokZASxk9aOAyUQIkTBqBGa1LJqNYY-39PcBzMK-7upz9aEtZ-iXLIVrcrl779_E5uZ33-095tPkHHroygA" 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></div></div></div><div>_______________________________________________<br></div><div>mythtv-users mailing list<br></div><div><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br></div><div><a href="http://email.mg.glenb.net/c/eJxNjk0OwiAUhE9TdhLoK_BYsHDjPfhtSQBNQRNvbzUmmsxmvplJJhifbBALyUY6H2eWOHcgubJhRqUQ0GFgS5xRBwjIpNDU2xrLtLC1xOZoi4NsRoQkktKORS28Ay2tB5lQgUduwUdSzDbGbYLzNF8OldxHp_U5tvGg1309ULW5VNu-YW7p-oafxune497Jbv7t8eC3fwGsEkCc">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br></div><div><a href="http://email.mg.glenb.net/c/eJxFjTsOwjAQBU8Td1j-e1O4oKGCMyB_NolFEiDZgLg9kSiQXjWa0Sshd7FYw2pwKaMSnZRJO-ljUeA9aEhQhEEFbdEFhLMtz3HCsTGiH3FOfEZiQ4CkbTY-RyeVhgxKIrjSWiGzskV3bAwD0aPRx0ad9r3rrfLpQwO9-H3pd3KJdaxzfz3Xla5I9bkhEbIl_KzDtuKy7q__6At7uzu6">http://wiki.mythtv.org/Mailing_List_etiquette</a><br></div><div>MythTV Forums: <a href="http://email.mg.glenb.net/c/eJxFjMsKwyAQAL8m3iq6Gt0cPPTS_1B3TQp5FDWF_n0DPRTmMgwMhVwijVY8g0uZQRWtk3HaRwL0Hg0mJGUZcCJDqNw4yRw3Xger5pX3JHfuYgmxFBMdUB49WXYAaCJrimAdkbaTWMPS-6sN5j7A46Ic9dzk9ulLf8ujzqKGn9zOxrVd-3_7AspqM8k">https://forum.mythtv.org</a><br></div></blockquote><div><br></div><div>fwiw: i made a simple script to get the listings using sdjson and then run mythfilldatabase. i set it up as a timer/service under systemctl/systemd. i run it once a day and its really simple. my mythfilldatabase looks like this:</div><div><br></div><div>mythfilldatabase --file --only-update-guide --sourceid 3 --xmlfile cable.xml</div><div><br></div><div>my grab listings command looks like this:</div><div> </div><div>tv_grab_zz_sdjson --days 12 --config-file cable.conf --output cable.xml</div><div><br></div><div>i had already made the conf files and leave them in user mythtv's home directory. and run script that runs one command after the other as user mythtv. i do same for 2 other sources. i have not had any problems doing it this way.</div><div><br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"></blockquote><div><br></div><div><span></span></div><img width="1px" height="1px" alt="" src="http://email.mg.glenb.net/o/eJwlyzsOwyAMANDTlK0IMB974DBgO0mlJJUIrdTbt1LHNzypvDRJ0Txq7qzBLd53yL40CVgKAnYUFzUgCQi6nMhyO3S_RbfuenZ76jRbjeCYkFJg8EoYAUIJnEicByZCM-rxmdt831-Xjuu3_7TPsX4BtysnEg"></body></html>