mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	Specify URL Track Key IDs to prepare_drm
This commit is contained in:
		
							parent
							
								
									a549cc6afb
								
							
						
					
					
						commit
						da7acb0417
					
				@ -798,12 +798,13 @@ class dl:
 | 
			
		||||
                            self.log.warning("No Widevine PSSH was found for this track, is it DRM free?")
 | 
			
		||||
 | 
			
		||||
                    if track.drm:
 | 
			
		||||
                        track_kid = track.get_key_id(session=service.session)
 | 
			
		||||
                        drm = track.drm[0]  # just use the first supported DRM system for now
 | 
			
		||||
                        if isinstance(drm, Widevine):
 | 
			
		||||
                            # license and grab content keys
 | 
			
		||||
                            if not prepare_drm:
 | 
			
		||||
                                raise ValueError("prepare_drm func must be supplied to use Widevine DRM")
 | 
			
		||||
                            prepare_drm(drm)
 | 
			
		||||
                            prepare_drm(drm, track_kid=track_kid)
 | 
			
		||||
                    else:
 | 
			
		||||
                        drm = None
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user