4 import beacon
, httpserver
, os
, sys
6 from Config
import config
9 port
= config
.get('Server', 'Port')
11 httpd
= httpserver
.TivoHTTPServer(('', int(port
)), httpserver
.TivoHTTPHandler
)
13 for section
in Config
.getShares():
15 settings
.update(config
.items(section
))
16 httpd
.add_container(section
, settings
)
19 b
.add_service('TiVoMediaServer:' + str(port
) + '/http')
24 except KeyboardInterrupt: