Strip " - Topic" from YouTube artist channel names
This commit is contained in:
parent
1fd4e96a3c
commit
7955fc4459
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
@ -76,6 +76,8 @@ async function getVideo() {
|
||||||
name: youtubeMusicVideo.title,
|
name: youtubeMusicVideo.title,
|
||||||
channelName: youtubeMusicVideo.artists[0].name
|
channelName: youtubeMusicVideo.artists[0].name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
selectedVideo.channelName = selectedVideo.channelName.replace(/\s-\sTopic/ig, "");
|
||||||
|
|
||||||
return selectedVideo;
|
return selectedVideo;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue