mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	Merge pull request #33 from varyg1001/master
always define track.path if track.descriptor is URL
This commit is contained in:
		
						commit
						5624232e5e
					
				@ -630,6 +630,7 @@ class dl:
 | 
			
		||||
                service.session.headers,
 | 
			
		||||
                proxy if track.needs_proxy else None
 | 
			
		||||
            ))
 | 
			
		||||
            track.path = save_path
 | 
			
		||||
 | 
			
		||||
            if not track.drm and isinstance(track, (Video, Audio)):
 | 
			
		||||
                try:
 | 
			
		||||
@ -645,7 +646,6 @@ class dl:
 | 
			
		||||
                    prepare_drm(drm)
 | 
			
		||||
                drm.decrypt(save_path)
 | 
			
		||||
                track.drm = None
 | 
			
		||||
                track.path = save_path
 | 
			
		||||
                if callable(track.OnDecrypted):
 | 
			
		||||
                    track.OnDecrypted(track)
 | 
			
		||||
        else:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user