Version 0.6.2 - Fix des fonctionnalités externes de la version
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| { | { | ||||||
|   "name": "subsonics-web", |   "name": "subsonics-web", | ||||||
|   "author": "Raphix", |   "author": "Raphix", | ||||||
|   "version": "0.6.1", |   "version": "0.6.2", | ||||||
|   "nodemonConfig": { |   "nodemonConfig": { | ||||||
|     "ext": "js, html", |     "ext": "js, html", | ||||||
|     "ignore": [ |     "ignore": [ | ||||||
|   | |||||||
| @@ -178,7 +178,7 @@ module.exports.List = class { | |||||||
|  |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     async playlistAdd(playlist, interaction) { |     async playlistAdd(playlist, interaction, userId) { | ||||||
|  |  | ||||||
|         if(interaction) { |         if(interaction) { | ||||||
|  |  | ||||||
|   | |||||||
| @@ -177,11 +177,11 @@ module.exports.getState = function(client, interaction) { | |||||||
|          |          | ||||||
| } | } | ||||||
|  |  | ||||||
| module.exports.playPlaylist = function (data, client) { | module.exports.playPlaylist = function (id, client) { | ||||||
|  |  | ||||||
|      |      | ||||||
|  |  | ||||||
|     list.playlistAdd(data, null) |     list.playlistAdd(data, null, id) | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -94,7 +94,7 @@ module.exports.playPlaylist = function (id, name) { | |||||||
|     if(playlists[id][name]) { |     if(playlists[id][name]) { | ||||||
|         plog.log("Ajout de la playlist à l'utilisateur \"" + id  + "\" dans la liste de lecture !") |         plog.log("Ajout de la playlist à l'utilisateur \"" + id  + "\" dans la liste de lecture !") | ||||||
|          |          | ||||||
|         subplayer.playPlaylist(playlists[id][name]) |         subplayer.playPlaylist(id, playlists[id][name]) | ||||||
|     } else { |     } else { | ||||||
|  |  | ||||||
|         plog.log("L'utilisateur \"" + id  + "\" n'a pas une playlist avec le nom "+ name + " dans la base de donnée Playlist !") |         plog.log("L'utilisateur \"" + id  + "\" n'a pas une playlist avec le nom "+ name + " dans la base de donnée Playlist !") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user