Remove the - Topic for more matches

This commit is contained in:
Sem Visscher
2021-03-21 22:28:05 +01:00
parent 2bb67db888
commit 1355b692b9

View File

@ -94,7 +94,7 @@ const addScrobble = async (songInfo, config) => {
await getAndSetSessionKey(config); await getAndSetSessionKey(config);
data = { data = {
track: songInfo.title, track: songInfo.title,
artist: songInfo.artist, artist: songInfo.artist?.replace(' - Topic', ''),
api_key: config.api_key, api_key: config.api_key,
sk: config.session_key, sk: config.session_key,
format: 'json', format: 'json',
@ -120,7 +120,7 @@ const setNowPlaying = async (songInfo, config) => {
await getAndSetSessionKey(config); await getAndSetSessionKey(config);
data = { data = {
track: songInfo.title, track: songInfo.title,
artist: songInfo.artist, artist: songInfo.artist?.replace(' - Topic', ''),
api_key: config.api_key, api_key: config.api_key,
sk: config.session_key, sk: config.session_key,
format: 'json', format: 'json',