diff --git a/src/index.js b/src/index.js index cb0c754..69e8a3c 100644 --- a/src/index.js +++ b/src/index.js @@ -110,7 +110,7 @@ async function getStreamInfo(streamInfo, abortSignals) { if (!responseBody) { throw new Error(`Could not get info from tmdb: ${url} - ${response.status}`); } - streamInfo.name = responseBody.original_name ? responseBody.original_name : responseBody.original_title; + streamInfo.name = responseBody.name ? responseBody.name : responseBody.title; streamInfo.year = (responseBody.release_date) ? responseBody.release_date.match(/\b\d{4}\b/)[0] : (responseBody.last_air_date) ? responseBody.last_air_date.match(/\b\d{4}\b/)[0] : ''; } }