[vdrpylib-devel] Some of my code modifications
Status: Alpha
Brought to you by:
rshortt
From: Sebastien L. <seb...@gm...> - 2004-12-16 13:17:25
|
Hi, I ran out of time yesterday to check everything. So I'll start with my modifications to channels.py and svdrp.py : Channels.py : I've added the same variables : provider, nid, rid, tid. Changed some integer variables to string. No problems here. You've done the same. You used a new variable id to store the channel ID, I used a new method getChannelID() returning the same thing with almost the same code. I've also added a check un addevent to prevent events already finished to be added (I don't remember why I added that). The most important change was to remove the indexes list as I never understood what it was for !! I replaced it by a unique index representing the real channel number in VDR. Maybe you can enlight me here. Svdrp.py : I kept the original TelnetLib method. But to prevent some errors (the same you had with EPG) I modified especially read_reply to wait (sleep) between each read_very_eager. I attached svdrp.py, it's not my latest one (too crappy to be shown) but it shows my modifications. I've also modified lstc but I had no more time yesterday to check it. Other explained changes will come (probably this weekend). WARNING : It was my first try writing python code so don't be too pedantic about my code ;). Vlad |