mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	Change wording from Download Stopped to Download Cancelled
This commit is contained in:
		
							parent
							
								
									d566aa2547
								
							
						
					
					
						commit
						ce457df151
					
				@ -949,7 +949,7 @@ class dl:
 | 
			
		||||
                        progress(downloaded="Downloaded")
 | 
			
		||||
                except KeyboardInterrupt:
 | 
			
		||||
                    self.DL_POOL_STOP.set()
 | 
			
		||||
                    progress(downloaded="[yellow]STOPPED")
 | 
			
		||||
                    progress(downloaded="[yellow]CANCELLED")
 | 
			
		||||
                    raise
 | 
			
		||||
                except Exception:
 | 
			
		||||
                    self.DL_POOL_STOP.set()
 | 
			
		||||
 | 
			
		||||
@ -436,9 +436,9 @@ class DASH:
 | 
			
		||||
                        download_size = download.result()
 | 
			
		||||
                    except KeyboardInterrupt:
 | 
			
		||||
                        stop_event.set()  # skip pending track downloads
 | 
			
		||||
                        progress(downloaded="[yellow]STOPPING")
 | 
			
		||||
                        progress(downloaded="[yellow]CANCELLING")
 | 
			
		||||
                        pool.shutdown(wait=True, cancel_futures=True)
 | 
			
		||||
                        progress(downloaded="[yellow]STOPPED")
 | 
			
		||||
                        progress(downloaded="[yellow]CANCELLED")
 | 
			
		||||
                        # tell dl that it was cancelled
 | 
			
		||||
                        # the pool is already shut down, so exiting loop is fine
 | 
			
		||||
                        raise
 | 
			
		||||
 | 
			
		||||
@ -275,9 +275,9 @@ class HLS:
 | 
			
		||||
                    download_size = download.result()
 | 
			
		||||
                except KeyboardInterrupt:
 | 
			
		||||
                    stop_event.set()  # skip pending track downloads
 | 
			
		||||
                    progress(downloaded="[yellow]STOPPING")
 | 
			
		||||
                    progress(downloaded="[yellow]CANCELLING")
 | 
			
		||||
                    pool.shutdown(wait=True, cancel_futures=True)
 | 
			
		||||
                    progress(downloaded="[yellow]STOPPED")
 | 
			
		||||
                    progress(downloaded="[yellow]CANCELLED")
 | 
			
		||||
                    # tell dl that it was cancelled
 | 
			
		||||
                    # the pool is already shut down, so exiting loop is fine
 | 
			
		||||
                    raise
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user