| 
					
				 | 
			
			
				@@ -21,7 +21,7 @@ console.log = (str) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fs.mkdirSync("log") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    fs.appendFileSync("log/latest.log",  "["+new Date().toISOString() + "] " + str.toString()+"\n"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    fs.appendFileSync("log/latest.log", "[" + new Date().toISOString() + "] " + str.toString() + "\n"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     original(str); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -36,6 +36,7 @@ import https from "node:https"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import nrc from "node-run-cmd"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import bodyParser from "body-parser"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import sec from "./sec.js"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let argv = Minimist(process.argv.slice(2)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,15 +55,7 @@ const Kind = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     5: "其他", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const db = mysql.createConnection({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    host: 'andyxie.cn', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    user: 'external', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    password: 'moyingren2015', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    database: "instrunet_data", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    pool: pool, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    enableKeepAlive: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    keepAliveInitialDelay: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const db = mysql.createConnection(sec(pool)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const {OpenCC} = pkg 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 webp.grant_permission() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -206,6 +199,11 @@ async function Submit(req) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        case 6: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            kind_of[0] = `audio-separator ./${uuid} -m htdemucs_6s.yaml --output_format mp3 --output_dir output --single_stem guitar` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            kind_of[1] = `./output/${uuid}_(Guitar)_htdemucs_6s.mp3` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            kind_of[2] = `${uuid}_(Guitar)_htdemucs_6s.mp3` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            kind_of[3] = `./output/${uuid}_(Others)_UVR_MDXNET_Main.mp3` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 |