Skip to content

Commit

Permalink
translated (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaridas authored Feb 27, 2024
1 parent d2f278e commit 9e4fbe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] : '';
}
}
Expand Down

0 comments on commit 9e4fbe0

Please sign in to comment.