magmastream
Advanced tools
Comparing version 2.5.4 to 2.5.5
@@ -192,6 +192,10 @@ "use strict"; | ||
for (const track of tracksToReplace) { | ||
if (isYouTubeURL(track.uri) && track.title.includes("-")) { | ||
if (isYouTubeURL(track.uri)) { | ||
track.author = track.author.replace("- Topic", ""); | ||
track.title = track.title.replace("Topic -", ""); | ||
} | ||
if (track.title.includes("-")) { | ||
const [author, title] = track.title.split("-").map((str) => str.trim()); | ||
track.author = author; | ||
track.title = title.replace("Topic -", ""); | ||
track.title = title; | ||
} | ||
@@ -198,0 +202,0 @@ } |
{ | ||
"name": "magmastream", | ||
"version": "2.5.4", | ||
"version": "2.5.5", | ||
"description": "A user-friendly Lavalink client designed for NodeJS.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112614
2734