1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-20 21:54:58 -04:00

New: Search library by TheTVDB, TV Maze or IMDB IDs

This commit is contained in:
Bogdan
2023-06-21 05:29:15 +03:00
committed by GitHub
parent 0a05781aca
commit 377e5f7fc7
3 changed files with 39 additions and 0 deletions
@@ -11,6 +11,9 @@ function SeriesSearchResult(props) {
title,
images,
alternateTitles,
tvdbId,
tvMazeId,
imdbId,
tags
} = props;
@@ -46,6 +49,30 @@ function SeriesSearchResult(props) {
null
}
{
match.key === 'tvdbId' && tvdbId ?
<div className={styles.alternateTitle}>
TvdbId: {tvdbId}
</div> :
null
}
{
match.key === 'tvMazeId' && tvMazeId ?
<div className={styles.alternateTitle}>
TvMazeId: {tvMazeId}
</div> :
null
}
{
match.key === 'imdbId' && imdbId ?
<div className={styles.alternateTitle}>
ImdbId: {imdbId}
</div> :
null
}
{
tag ?
<div className={styles.tagContainer}>
@@ -67,6 +94,9 @@ SeriesSearchResult.propTypes = {
title: PropTypes.string.isRequired,
images: PropTypes.arrayOf(PropTypes.object).isRequired,
alternateTitles: PropTypes.arrayOf(PropTypes.object).isRequired,
tvdbId: PropTypes.number,
tvMazeId: PropTypes.number,
imdbId: PropTypes.string,
tags: PropTypes.arrayOf(PropTypes.object).isRequired,
match: PropTypes.object.isRequired
};