Changeset f15900aefc8ba09915196185fd3f9895c1532600 for plugins/video
- Timestamp:
- 04/08/08 22:11:31 (9 months ago)
- git-parent:
- Files:
-
- plugins/video/video.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/video/video.py
rae39ac9 rf15900a 400 400 401 401 def TVBusQuery(self, handler, query): 402 tsn = handler.headers.getheader('tsn', '') 402 tsn = handler.headers.getheader('tsn', '') 403 403 file = query['File'][0] 404 404 path = self.get_local_path(handler, query) … … 423 423 handler.wfile.write(file.read()) 424 424 425 425 426 426 def Push(self, handler, query): 427 427 file = unquote(query['File'][0]) … … 444 444 url = 'http://%s:%s/%s%s' % (ip, port, container, quote(file)) 445 445 446 print 'tsn', tsn447 print 'url', url448 print query449 450 username = config.getTivoUsername()451 password = config.getTivoPassword()452 453 if not username or not password:454 raise Exception("tivo_username and tivo_password required")455 456 446 try: 457 m = mind. Mind(username, password, True)447 m = mind.getMind() 458 448 m.pushVideo( 459 tsn = tsn, 460 url = url, 449 tsn = tsn, 450 url = url, 461 451 description = file_info['description'], 462 452 duration = file_info['duration'] / 1000,
