[svn r477] Added functions to get the channel's list from the MythTV, using the normal backend server messages.
10 elif len(sys.argv) == 2:
15 PORT = int(sys.argv[2])
17 socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
21 socket.connect( (HOST,PORT) )
23 print "\n--> Could not connect to ('%s':'%d')\n" % (HOST,PORT)
27 mplayer = os.popen("which mplayer").read().strip()
28 mplayer += " - 1> /dev/null"
29 pin, pout = os.popen2(mplayer)
31 data = socket.recv(1024)
34 data = socket.recv(1024)
40 # from select import select
41 # r, w, x = select([pout], []. [], 0)