Fix bug in TDAW url params

This commit is contained in:
Mike Rode
2019-09-20 00:08:24 -05:00
parent 6d65f1df91
commit 756b930ed5
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ const similarMedia = async (req, res) => {
logger.info(
`show name for tdaw api similar media ${formattedShowName}`,
);
const media = 'show';
const media = 'shows';
const response = await tdawApi.similarMedia(
req,
formattedShowName.replace(/[{()}]/g, ''),

View File

@@ -11,7 +11,7 @@ const tdawMediaUrl = function(mediaName, mediaType) {
q: mediaName,
k: config.tdaw.token,
info: 1,
mediaType,
type: mediaType,
},
};
};