4 import beacon
, httpserver
, os
, sys
8 port
= config
.getPort()
10 httpd
= httpserver
.TivoHTTPServer(('', int(port
)), httpserver
.TivoHTTPHandler
)
12 for section
, settings
in config
.getShares():
13 httpd
.add_container(section
, settings
)
16 b
.add_service('TiVoMediaServer:' + str(port
) + '/http')
21 except KeyboardInterrupt: