Now sending good datetimes, title fixed on display
[pyTivo.git] / pyTivo.py
blob475d2ec33625502f39060a969bad5be64a8e69c4
1 #!/usr/bin/env python
4 import beacon, httpserver, os, sys
6 import config
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)
15 b = beacon.Beacon()
16 b.add_service('TiVoMediaServer:' + str(port) + '/http')
17 b.start()
19 try:
20 httpd.serve_forever()
21 except KeyboardInterrupt:
22 b.stop()