mirror of
				https://github.com/hydralauncher/hydra.git
				synced 2025-03-09 15:40:26 +00:00 
			
		
		
		
	feat: add ablity to pause and resume the seeding process
This commit is contained in:
		
							parent
							
								
									c556a00e4a
								
							
						
					
					
						commit
						b32952f076
					
				
					 11 changed files with 120 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -121,6 +121,10 @@ class Handler(BaseHTTPRequestHandler):
 | 
			
		|||
            elif data['action'] == 'kill-torrent':
 | 
			
		||||
                torrent_downloader.abort_session()
 | 
			
		||||
                torrent_downloader = None
 | 
			
		||||
            elif data['action'] == 'pause-seeding':
 | 
			
		||||
                torrent_downloader.pause_seeding(data['game_id'])
 | 
			
		||||
            elif data['action'] == 'resume-seeding':
 | 
			
		||||
                torrent_downloader.resume_seeding(data['game_id'], data['magnet'], data['save_path'])
 | 
			
		||||
 | 
			
		||||
            self.send_response(200)
 | 
			
		||||
            self.end_headers()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue