Remove cleanSearchTerm calls for artist and title from within the retry loop.
This commit is contained in:
@@ -109,8 +109,6 @@ async function main() {
|
||||
|
||||
while (retries < MAX_RETRIES) {
|
||||
try {
|
||||
const cleanArtist = cleanSearchTerm(song.artist);
|
||||
const cleanTitle = cleanSearchTerm(song.title);
|
||||
const term = encodeURIComponent(`${cleanArtist} ${cleanTitle}`);
|
||||
const itunesUrl = `https://itunes.apple.com/search?term=${term}&entity=song&limit=5`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user