<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 5 Sept 2021 at 11:26, 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-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
Ok, I have played around with your cross-eit.py and I do not like at<br>
all the way it creates huge line lengths. That can be a problem for a<br>
program trying to read data into a buffer - maybe mythfilldatabase is<br>
having that problem. So I have modified it to use the lxml library<br>
instead of xml, and used lxml's pretty printing output option. I have<br>
put it on my web server:<br>
<br>
<a href="http://www.jsw.gen.nz/mythtv/cross-eit.py" rel="noreferrer" target="_blank">http://www.jsw.gen.nz/mythtv/cross-eit.py</a><br>
<br>
If you do not already have the lxml package installed, on Ubuntu you<br>
can install it with:<br>
<br>
apt install python3-lxml<br>
<br>
or it can be installed using pip.</blockquote><div><br></div><div>Thank you, much appreciated. I also didn't like those long lines.</div><div><br></div><div>(BTW: "your" cross-eit.py is crediting me for more than I deserve, although I know that's not what you meant.) </div><div><br></div><div>I'll use "your" cross-eit.py ;-) as the base when fixing the daylight time offset issue.</div></div></div>