I I just rewrote ptii from scratch, implementing Inotify and readdir to build the channel tree. The code is more solid now (I think ^^).

It actually lack some features like handling multiple servers or switching to a channel by its name or number. But as I'm starting from a better basis, it will be easier to hack and improve. Feel free to join!