4 import beacon
, httpserver
, os
, sys
6 from Config
import config
8 port
= config
.get('Server', 'Port')
10 httpd
= httpserver
.TivoHTTPServer(('', int(port
)), httpserver
.TivoHTTPHandler
)
12 for section
in config
.sections():
13 if not section
== 'Server':
14 httpd
.add_container(section
, config
.get(section
, 'type'), config
.get(section
, 'path'))
17 b
.add_service('TiVoMediaServer:' + str(port
) + '/http')
22 except KeyboardInterrupt: