mirror of
				https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
				synced 2025-11-04 05:20:34 +00:00 
			
		
		
		
	Track download fix part 1
This commit is contained in:
		
							parent
							
								
									76f4089e38
								
							
						
					
					
						commit
						813ec6228d
					
				@ -134,8 +134,6 @@ def download_track(track_id: str, extra_paths='', prefix=False, prefix_value='',
 | 
				
			|||||||
                    ) as p_bar:
 | 
					                    ) as p_bar:
 | 
				
			||||||
                        for chunk in range(int(total_size / ZSpotify.get_config(CHUNK_SIZE)) + 1):
 | 
					                        for chunk in range(int(total_size / ZSpotify.get_config(CHUNK_SIZE)) + 1):
 | 
				
			||||||
                            data = stream.input_stream.stream().read(ZSpotify.get_config(CHUNK_SIZE))
 | 
					                            data = stream.input_stream.stream().read(ZSpotify.get_config(CHUNK_SIZE))
 | 
				
			||||||
                            if data == b'':
 | 
					 | 
				
			||||||
                                break
 | 
					 | 
				
			||||||
                            p_bar.update(file.write(data))
 | 
					                            p_bar.update(file.write(data))
 | 
				
			||||||
                            if ZSpotify.get_config(DOWNLOAD_REAL_TIME):
 | 
					                            if ZSpotify.get_config(DOWNLOAD_REAL_TIME):
 | 
				
			||||||
                                if chunk == 0:
 | 
					                                if chunk == 0:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user