.
This commit is contained in:
		
							parent
							
								
									2c3f0e5b9b
								
							
						
					
					
						commit
						ac20a99da7
					
				@ -783,16 +783,15 @@ class Pyrrent2http(object):
 | 
				
			|||||||
            logging.info('Encryption not supported: %s' % (e.args,))
 | 
					            logging.info('Encryption not supported: %s' % (e.args,))
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    def Status(self):
 | 
					    def Status(self):
 | 
				
			||||||
        logging.info('++++++++++ entering status')
 | 
					        #try:
 | 
				
			||||||
        try:
 | 
					        #    info = self.torrentHandle.torrent_file()
 | 
				
			||||||
            info = self.torrentHandle.torrent_file()
 | 
					        #except:
 | 
				
			||||||
        except:
 | 
					        #    info = self.torrentHandle.get_torrent_info()
 | 
				
			||||||
            info = self.torrentHandle.get_torrent_info()
 | 
					 | 
				
			||||||
        logging.info('+++++getting h.status')
 | 
					 | 
				
			||||||
        tstatus = self.torrentHandle.status()
 | 
					        tstatus = self.torrentHandle.status()
 | 
				
			||||||
        logging.info('h.status is here')
 | 
					
 | 
				
			||||||
        status = {
 | 
					        status = {
 | 
				
			||||||
                     'name'           :   info.name(),
 | 
					        #             'name'           :   info.name(),
 | 
				
			||||||
 | 
					                     'name'           :   self.TorrentFS.name.split('/')[-1],
 | 
				
			||||||
                     'state'          :   int(tstatus.state),
 | 
					                     'state'          :   int(tstatus.state),
 | 
				
			||||||
                     'state_str'       :   str(tstatus.state),
 | 
					                     'state_str'       :   str(tstatus.state),
 | 
				
			||||||
                     'error'          :   tstatus.error,
 | 
					                     'error'          :   tstatus.error,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user