Version 2.0.4 - Fix du crash Lavalink (Temporaire)
This commit is contained in:
		@@ -480,7 +480,8 @@
 | 
				
			|||||||
      "67eab87f-8a22-4cef-bf7c-b1109a4fbfdb",
 | 
					      "67eab87f-8a22-4cef-bf7c-b1109a4fbfdb",
 | 
				
			||||||
      "e18b2d89-2494-4cfe-af55-dad6dfbc0c60",
 | 
					      "e18b2d89-2494-4cfe-af55-dad6dfbc0c60",
 | 
				
			||||||
      "0a0b75f3-6a42-4ccf-92f9-d992a63545a4",
 | 
					      "0a0b75f3-6a42-4ccf-92f9-d992a63545a4",
 | 
				
			||||||
      "419a246f-e7b3-4aa4-9fa0-816dffc22a19"
 | 
					      "419a246f-e7b3-4aa4-9fa0-816dffc22a19",
 | 
				
			||||||
 | 
					      "471c4c81-b8bc-42e7-af1a-d33df30cff2b"
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "picture": "/userspictures/486943594893017119.png",
 | 
					    "picture": "/userspictures/486943594893017119.png",
 | 
				
			||||||
    "banned": false,
 | 
					    "banned": false,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "subsonics-web",
 | 
					  "name": "subsonics-web",
 | 
				
			||||||
  "author": "Raphix",
 | 
					  "author": "Raphix",
 | 
				
			||||||
  "version": "2.0.3",
 | 
					  "version": "2.0.4",
 | 
				
			||||||
  "nodemonConfig": {
 | 
					  "nodemonConfig": {
 | 
				
			||||||
    "ext": "js, html",
 | 
					    "ext": "js, html",
 | 
				
			||||||
    "ignore": [
 | 
					    "ignore": [
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -91,7 +91,7 @@ module.exports.addNodes = function (data) {
 | 
				
			|||||||
    nlog.step.init("add_nodes", "Ajout d'un nouveau noeud dans la base de donnée de nodes : " + data.host)
 | 
					    nlog.step.init("add_nodes", "Ajout d'un nouveau noeud dans la base de donnée de nodes : " + data.host)
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
        var nodes_data = readNodesFile()
 | 
					        var nodes_data = readNodesFile()
 | 
				
			||||||
        data.retryAmount = 1
 | 
					        data.retryAmount = 5
 | 
				
			||||||
        nodes_data.push(data)
 | 
					        nodes_data.push(data)
 | 
				
			||||||
        saveNodesFile(nodes_data) 
 | 
					        saveNodesFile(nodes_data) 
 | 
				
			||||||
        nlog.step.end("add_nodes")
 | 
					        nlog.step.end("add_nodes")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -557,8 +557,9 @@ function IOConnection(io) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                GetRequest("RESTART", () => {
 | 
					                GetRequest("RESTART", () => {
 | 
				
			||||||
                    const pm2 = require('pm2');
 | 
					                    const pm2 = require('pm2');
 | 
				
			||||||
 | 
					                    const child_process = require('child_process')
 | 
				
			||||||
 | 
					                    let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl restart lavalink `)
 | 
				
			||||||
                    pm2.restart('Subsonics')
 | 
					                    pm2.restart('Subsonics')
 | 
				
			||||||
             
 | 
					 | 
				
			||||||
                    GetAnswer("RESTART", "OK")
 | 
					                    GetAnswer("RESTART", "OK")
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
                })
 | 
					                })
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,6 @@ const shuffle = getID("shuffle")
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const durationBar = getID("duration")
 | 
					const durationBar = getID("duration")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
const video_img = getID("video_img")
 | 
					const video_img = getID("video_img")
 | 
				
			||||||
const video_title = getID("video_title")
 | 
					const video_title = getID("video_title")
 | 
				
			||||||
const video_artist = getID("video_artist")
 | 
					const video_artist = getID("video_artist")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user