poru 3.3.2 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poru",
3
- "version": "3.3.2",
3
+ "version": "3.4.0",
4
4
  "description": "A stable and powerfull lavalink client around node.js",
5
5
  "main": "index.js",
6
6
  "typings": "./typings/index.d.ts",
package/src/Node.js CHANGED
@@ -86,7 +86,7 @@ class Node {
86
86
  A;
87
87
  }
88
88
  this.isConnected = false;
89
- this.ws.removeAllListeners();
89
+ this.ws?.removeAllListeners();
90
90
  this.ws = null;
91
91
  this.manager.emit("nodeReconnect", this);
92
92
  this.connect();
@@ -11,7 +11,7 @@ class Track {
11
11
  sourceName: data.info.sourceName,
12
12
  title: data.info.title,
13
13
  uri: data.info.uri,
14
- image: `https://i.ytimg.com/vi/${data.info.identifier}/1.jpg` || null,
14
+ image: `https://i.ytimg.com/vi/${data.info.identifier}/maxresdefault.jpg` || null,
15
15
  };
16
16
  }
17
17
 
@@ -39,7 +39,7 @@ class Track {
39
39
  );
40
40
  if (officialAudio) {
41
41
  this.info.identifier = officialAudio.info.identifier;
42
- this.image = `https://i.ytimg.com/vi/${this.info.identifier}/1.jpg`;
42
+ this.image = `https://i.ytimg.com/vi/${this.info.identifier}/maxresdefault.jpg`;
43
43
  this.track = officialAudio.track;
44
44
  return this;
45
45
  }
@@ -52,13 +52,13 @@ class Track {
52
52
  );
53
53
  if (sameDuration) {
54
54
  this.info.identifier = sameDuration.info.identifier;
55
- this.image = `https://i.ytimg.com/vi/${this.info.identifier}/1.jpg`;
55
+ this.image = `https://i.ytimg.com/vi/${this.info.identifier}/maxresdefault.jpg`;
56
56
  this.track = sameDuration.track;
57
57
  return this;
58
58
  }
59
59
  }
60
60
  this.info.identifier = result.tracks[0].info.identifier;
61
- this.image = `https://i.ytimg.com/vi/${this.info.identifier}/1.jpg`;
61
+ this.image = `https://i.ytimg.com/vi/${this.info.identifier}/maxresdefault.jpg`;
62
62
  this.track = result.tracks[0].track;
63
63
  return this;
64
64
  }