3 import beacon
, httpserver
, os
, sys
6 port
= config
.getPort()
8 httpd
= httpserver
.TivoHTTPServer(('', int(port
)), httpserver
.TivoHTTPHandler
)
10 for section
, settings
in config
.getShares():
11 httpd
.add_container(section
, settings
)
14 b
.add_service('TiVoMediaServer:' + str(port
) + '/http')
16 if 'listen' in config
.getBeaconAddresses():
21 except KeyboardInterrupt: