Show
Ignore:
Timestamp:
04/08/08 22:11:31 (9 months ago)
Author:
Jason Michalski <armooo@armooo.net>
git-committer:
Jason Michalski <armooo@armooo.net> 1207710691 -0500
git-parent:

[bcdc845341716e64935c3f5371b74473b68d61d8]

git-author:
Jason Michalski <armooo@armooo.net> 1207710389 -0500
Message:

Fixed push bug from the changed mind class api

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/video/video.py

    rae39ac9 rf15900a  
    400400 
    401401    def TVBusQuery(self, handler, query): 
    402         tsn = handler.headers.getheader('tsn', '')        
     402        tsn = handler.headers.getheader('tsn', '') 
    403403        file = query['File'][0] 
    404404        path = self.get_local_path(handler, query) 
     
    423423        handler.wfile.write(file.read()) 
    424424 
    425      
     425 
    426426    def Push(self, handler, query): 
    427427        file = unquote(query['File'][0]) 
     
    444444        url = 'http://%s:%s/%s%s' % (ip, port, container, quote(file)) 
    445445 
    446         print 'tsn', tsn 
    447         print 'url', url 
    448         print query 
    449  
    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  
    456446        try: 
    457             m = mind.Mind(username, password, True
     447            m = mind.getMind(
    458448            m.pushVideo( 
    459                 tsn = tsn,  
    460                 url = url,  
     449                tsn = tsn, 
     450                url = url, 
    461451                description = file_info['description'], 
    462452                duration = file_info['duration'] / 1000,