[mythtv-users] Fwd: Re: channel4 hd has no eit - cross-eit
Stephen Worthington
stephen_agent at jsw.gen.nz
Sun Sep 5 10:25:06 UTC 2021
On Sun, 5 Sep 2021 10:18:15 +0100, you wrote:
>On Sun, 5 Sept 2021 at 10:06, UB40D <ub40dd at googlemail.com> wrote:
>
>>
>>
>> On Sun, 5 Sept 2021 at 09:21, Stephen Worthington <
>> stephen_agent at jsw.gen.nz> wrote:
>>
>>>
>>> The list archive site is now here:
>>>
>>> https://lists.archive.carbon60.com/mythtv/
>>>
>>> but it does not seem to have your Python 3 version of cross-eit.py,
>>> and Google does not find it either. So please repost it, and I will
>>> have a go running it and see if I can see anything.
>>>
>>
>> Thanks. I reposted it now (with headers from the original message, showing
>> that the new list archive is missing at least that post and probably
>> others).
>>
>
>Actually it bounced: held for moderation because of message length.
>So, meanwhile, here is a pastebin of just the script.
>
>https://pastebin.com/d51VUASq
Ok, I have played around with your cross-eit.py and I do not like at
all the way it creates huge line lengths. That can be a problem for a
program trying to read data into a buffer - maybe mythfilldatabase is
having that problem. So I have modified it to use the lxml library
instead of xml, and used lxml's pretty printing output option. I have
put it on my web server:
http://www.jsw.gen.nz/mythtv/cross-eit.py
If you do not already have the lxml package installed, on Ubuntu you
can install it with:
apt install python3-lxml
or it can be installed using pip.
More information about the mythtv-users
mailing list