magmastream 2.5.4 → 2.5.7
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/dist/index.d.ts
CHANGED
|
@@ -335,6 +335,8 @@ interface Track {
|
|
|
335
335
|
author: string;
|
|
336
336
|
/** The duration of the track. */
|
|
337
337
|
readonly duration: number;
|
|
338
|
+
/** The ISRC of the track. */
|
|
339
|
+
readonly isrc: string;
|
|
338
340
|
/** If the track is seekable. */
|
|
339
341
|
readonly isSeekable: boolean;
|
|
340
342
|
/** If the track is a stream.. */
|
|
@@ -634,6 +636,7 @@ interface TrackDataInfo {
|
|
|
634
636
|
isSeekable: boolean;
|
|
635
637
|
author: string;
|
|
636
638
|
length: number;
|
|
639
|
+
isrc?: string;
|
|
637
640
|
isStream: boolean;
|
|
638
641
|
title: string;
|
|
639
642
|
uri?: string;
|
|
@@ -189,10 +189,14 @@ class Manager extends events_1.EventEmitter {
|
|
|
189
189
|
tracksToReplace = result.tracks;
|
|
190
190
|
}
|
|
191
191
|
for (const track of tracksToReplace) {
|
|
192
|
-
if (isYouTubeURL(track.uri)
|
|
192
|
+
if (isYouTubeURL(track.uri)) {
|
|
193
|
+
track.author = track.author.replace("- Topic", "");
|
|
194
|
+
track.title = track.title.replace("Topic -", "");
|
|
195
|
+
}
|
|
196
|
+
if (track.title.includes("-")) {
|
|
193
197
|
const [author, title] = track.title.split("-").map((str) => str.trim());
|
|
194
198
|
track.author = author;
|
|
195
|
-
track.title = title
|
|
199
|
+
track.title = title;
|
|
196
200
|
}
|
|
197
201
|
}
|
|
198
202
|
}
|
package/dist/structures/Utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magmastream",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.7",
|
|
4
4
|
"description": "A user-friendly Lavalink client designed for NodeJS.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@favware/rollup-type-bundler": "^3.3.0",
|
|
18
|
-
"@types/lodash": "^4.17.
|
|
19
|
-
"@types/node": "^20.
|
|
18
|
+
"@types/lodash": "^4.17.6",
|
|
19
|
+
"@types/node": "^20.14.9",
|
|
20
20
|
"@types/ws": "^8.5.10",
|
|
21
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
22
|
-
"@typescript-eslint/parser": "^7.
|
|
21
|
+
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
22
|
+
"@typescript-eslint/parser": "^7.15.0",
|
|
23
23
|
"eslint": "^8.57.0",
|
|
24
24
|
"npm-run-all": "^4.1.5",
|
|
25
25
|
"typedoc": "^0.25.13",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@discordjs/collection": "^2.1.0",
|
|
31
|
-
"axios": "^1.
|
|
31
|
+
"axios": "^1.7.2",
|
|
32
32
|
"events": "^3.3.0",
|
|
33
33
|
"lodash": "^4.17.21",
|
|
34
|
-
"tslib": "^2.6.
|
|
35
|
-
"ws": "^8.
|
|
34
|
+
"tslib": "^2.6.3",
|
|
35
|
+
"ws": "^8.18.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"discord.js": ">=13.0.0 <15.0.0"
|