mirror of
				https://github.com/devine-dl/pywidevine.git
				synced 2025-11-04 03:44:50 +00:00 
			
		
		
		
	Return subprocess returncode in decrypt()
This commit is contained in:
		
							parent
							
								
									2d8163f76d
								
							
						
					
					
						commit
						0c31f88d23
					
				@ -473,7 +473,7 @@ class Cdm:
 | 
			
		||||
        output_file: Union[Path, str],
 | 
			
		||||
        temp_dir: Optional[Union[Path, str]] = None,
 | 
			
		||||
        exists_ok: bool = False
 | 
			
		||||
    ):
 | 
			
		||||
    ) -> int:
 | 
			
		||||
        """
 | 
			
		||||
        Decrypt a Widevine-encrypted file using Shaka-packager.
 | 
			
		||||
        Shaka-packager is much more stable than mp4decrypt.
 | 
			
		||||
@ -549,7 +549,7 @@ class Cdm:
 | 
			
		||||
            temp_dir.mkdir(parents=True, exist_ok=True)
 | 
			
		||||
            args.extend(["--temp_dir", temp_dir])
 | 
			
		||||
 | 
			
		||||
        subprocess.check_call([executable, *args])
 | 
			
		||||
        return subprocess.check_call([executable, *args])
 | 
			
		||||
 | 
			
		||||
    @staticmethod
 | 
			
		||||
    def encrypt_client_id(
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user