| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -1109,6 +1109,7 @@ function download(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								subs1 || subs,
 | 
					 | 
					 | 
					 | 
								subs1 || subs,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								subs2 || subLangs,
 | 
					 | 
					 | 
					 | 
								subs2 || subLangs,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								"--no-playlist",
 | 
					 | 
					 | 
					 | 
								"--no-playlist",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								"--embed-chapters",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								// "--embed-metadata",
 | 
					 | 
					 | 
					 | 
								// "--embed-metadata",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								ext == "mp4" && audioForVideoExt === "m4a" && extractor_key === "Youtube" && os.platform() !== "darwin" ? "--embed-thumbnail" : "",
 | 
					 | 
					 | 
					 | 
								ext == "mp4" && audioForVideoExt === "m4a" && extractor_key === "Youtube" && os.platform() !== "darwin" ? "--embed-thumbnail" : "",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								configArg,
 | 
					 | 
					 | 
					 | 
								configArg,
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -1151,6 +1152,7 @@ function download(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								`"${path.join(downloadDir, filename + `.${extractExt}`)}"`,
 | 
					 | 
					 | 
					 | 
								`"${path.join(downloadDir, filename + `.${extractExt}`)}"`,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								"--ffmpeg-location",
 | 
					 | 
					 | 
					 | 
								"--ffmpeg-location",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								ffmpeg,
 | 
					 | 
					 | 
					 | 
								ffmpeg,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								"--embed-chapters",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								"--no-playlist",
 | 
					 | 
					 | 
					 | 
								"--no-playlist",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								// "--embed-metadata",
 | 
					 | 
					 | 
					 | 
								// "--embed-metadata",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								(extractFormat1 == "m4a" || extractFormat1 == "mp3") && extractor_key === "Youtube" && os.platform() !== "darwin"
 | 
					 | 
					 | 
					 | 
								(extractFormat1 == "m4a" || extractFormat1 == "mp3") && extractor_key === "Youtube" && os.platform() !== "darwin"
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -1189,6 +1191,7 @@ function download(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								subs1 || subs,
 | 
					 | 
					 | 
					 | 
								subs1 || subs,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								subs2 || subLangs,
 | 
					 | 
					 | 
					 | 
								subs2 || subLangs,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								"--no-playlist",
 | 
					 | 
					 | 
					 | 
								"--no-playlist",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								"--embed-chapters",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								// "--embed-metadata",
 | 
					 | 
					 | 
					 | 
								// "--embed-metadata",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								(ext == "m4a" || ext == "mp4") && extractor_key === "Youtube" && os.platform() !== "darwin" ? "--embed-thumbnail" : "",
 | 
					 | 
					 | 
					 | 
								(ext == "m4a" || ext == "mp4") && extractor_key === "Youtube" && os.platform() !== "darwin" ? "--embed-thumbnail" : "",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								cookieArg,
 | 
					 | 
					 | 
					 | 
								cookieArg,
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -1221,6 +1224,7 @@ function download(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						downloadProcess
 | 
					 | 
					 | 
					 | 
						downloadProcess
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							.on("progress", (progress) => {
 | 
					 | 
					 | 
					 | 
							.on("progress", (progress) => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								if (progress.percent == 100) {
 | 
					 | 
					 | 
					 | 
								if (progress.percent == 100) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									getId(randomId + "speed").textContent = "";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									getId(randomId + "prog").textContent =
 | 
					 | 
					 | 
					 | 
									getId(randomId + "prog").textContent =
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										i18n.__("Processing") + "...";
 | 
					 | 
					 | 
					 | 
										i18n.__("Processing") + "...";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									
 | 
					 | 
					 | 
					 | 
									
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |