Removed an extra print
[pyTivo.git] / pyTivo.py
blob0afaa518beeac491cad73edf913cf5d86194a595
1 #!/usr/bin/env python
4 import beacon, httpserver, os, sys
6 from Config import config
7 import Config
9 port = config.get('Server', 'Port')
11 httpd = httpserver.TivoHTTPServer(('', int(port)), httpserver.TivoHTTPHandler)
13 for section in Config.getShares():
14 settings = {}
15 settings.update(config.items(section))
16 httpd.add_container(section, settings)
18 b = beacon.Beacon()
19 b.add_service('TiVoMediaServer:' + str(port) + '/http')
20 b.start()
22 try:
23 httpd.serve_forever()
24 except KeyboardInterrupt:
25 b.stop()