From 7955fc4459f13ee7190a9d41db2c27c406b792b0 Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange Date: Wed, 21 Feb 2024 08:51:19 -0600 Subject: [PATCH] Strip " - Topic" from YouTube artist channel names --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 65d6f5f..87d55df 100644 --- a/index.js +++ b/index.js @@ -76,6 +76,8 @@ async function getVideo() { name: youtubeMusicVideo.title, channelName: youtubeMusicVideo.artists[0].name } + + selectedVideo.channelName = selectedVideo.channelName.replace(/\s-\sTopic/ig, ""); return selectedVideo; }