|  | @@ -168,6 +168,12 @@ function Submit() {
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +app.get('/queue', (req, res) => {
 | 
											
												
													
														|  | 
 |  | +    res.header("Access-Control-Allow-Origin", "*");
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    res.end(JSON.stringify(currentTask));
 | 
											
												
													
														|  | 
 |  | +})
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  app.post('/submit', SubmitWrapper)
 |  |  app.post('/submit', SubmitWrapper)
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  function SubmitWrapper(req, res) {
 |  |  function SubmitWrapper(req, res) {
 | 
											
										
											
												
													
														|  | @@ -200,9 +206,7 @@ function SubmitWrapper(req, res) {
 | 
											
												
													
														|  |              if (req.body.file !== undefined) {
 |  |              if (req.body.file !== undefined) {
 | 
											
												
													
														|  |                  queue.add(Submit)
 |  |                  queue.add(Submit)
 | 
											
												
													
														|  |                  currentTask.push({
 |  |                  currentTask.push({
 | 
											
												
													
														|  | -                    name: req.body.name,
 |  | 
 | 
											
												
													
														|  | -                    albumName: req.body.albumName,
 |  | 
 | 
											
												
													
														|  | -                    kind: req.body.kind,
 |  | 
 | 
											
												
													
														|  | 
 |  | +                    name: req.body.name, albumName: req.body.albumName, kind: req.body.kind, artist: req.body.artist,
 | 
											
												
													
														|  |                  })
 |  |                  })
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |              console.log(queue.contents)
 |  |              console.log(queue.contents)
 | 
											
										
											
												
													
														|  | @@ -231,6 +235,7 @@ app.post('/lyric', async (req, res) => {
 | 
											
												
													
														|  |      let album = req.body.albumName;
 |  |      let album = req.body.albumName;
 | 
											
												
													
														|  |      let lrc = "";
 |  |      let lrc = "";
 | 
											
												
													
														|  |      await fetchThatShit()
 |  |      await fetchThatShit()
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      async function fetchThatShit() {
 |  |      async function fetchThatShit() {
 | 
											
												
													
														|  |          try {
 |  |          try {
 | 
											
												
													
														|  |              lrc = await (await fetch(`https://api.lrc.cx/api/v1/lyrics/single?title=${name}&album=${album}&artist=${artist}`, {
 |  |              lrc = await (await fetch(`https://api.lrc.cx/api/v1/lyrics/single?title=${name}&album=${album}&artist=${artist}`, {
 |