From f1d7faf02dd68f3317d8cf434116ce3330ef628d Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Sun, 8 Apr 2018 22:49:37 +0100 Subject: [PATCH] Amazon doesn't like colons --- lib/services/amazon/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/amazon/index.js b/lib/services/amazon/index.js index 8cb302a..51d5f9c 100644 --- a/lib/services/amazon/index.js +++ b/lib/services/amazon/index.js @@ -72,8 +72,8 @@ export function* search(data) { try { const type = data.type; const results = yield client.itemSearch({ - author: data.artist.name.normalize(), - title: data.name.normalize(), + author: data.artist.name.replace(':', ' '), + title: data.name.replace(':', ' '), searchIndex: 'MP3Downloads', responseGroup: 'ItemAttributes,Tracks,Images,ItemIds', });