mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-17 15:02:34 +02:00
Fixed: OriginalTitle in the API using the Title
New: Change tooltip (title) on movie details to original title
This commit is contained in:
parent
27844d9f5c
commit
67b4182f4d
@ -9,6 +9,7 @@ class Marquee extends Component {
|
|||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
text: PropTypes.string,
|
text: PropTypes.string,
|
||||||
|
title: PropTypes.string,
|
||||||
hoverToStop: PropTypes.bool,
|
hoverToStop: PropTypes.bool,
|
||||||
loop: PropTypes.bool,
|
loop: PropTypes.bool,
|
||||||
className: PropTypes.string
|
className: PropTypes.string
|
||||||
@ -16,6 +17,7 @@ class Marquee extends Component {
|
|||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
text: '',
|
text: '',
|
||||||
|
title: '',
|
||||||
hoverToStop: true,
|
hoverToStop: true,
|
||||||
loop: false
|
loop: false
|
||||||
};
|
};
|
||||||
@ -144,7 +146,7 @@ class Marquee extends Component {
|
|||||||
this.text = el;
|
this.text = el;
|
||||||
}}
|
}}
|
||||||
style={style}
|
style={style}
|
||||||
title={this.props.text}
|
title={(this.props.title && (this.props.text !== this.props.title)) ? `Original Title: ${this.props.title}` : this.props.text}
|
||||||
>
|
>
|
||||||
{this.props.text}
|
{this.props.text}
|
||||||
</span>
|
</span>
|
||||||
@ -167,7 +169,7 @@ class Marquee extends Component {
|
|||||||
this.text = el;
|
this.text = el;
|
||||||
}}
|
}}
|
||||||
style={style}
|
style={style}
|
||||||
title={this.props.text}
|
title={(this.props.title && (this.props.text !== this.props.title)) ? `Original Title: ${this.props.title}` : this.props.text}
|
||||||
>
|
>
|
||||||
{this.props.text}
|
{this.props.text}
|
||||||
</span>
|
</span>
|
||||||
|
@ -235,6 +235,7 @@ class MovieDetails extends Component {
|
|||||||
tmdbId,
|
tmdbId,
|
||||||
imdbId,
|
imdbId,
|
||||||
title,
|
title,
|
||||||
|
originalTitle,
|
||||||
year,
|
year,
|
||||||
inCinemas,
|
inCinemas,
|
||||||
physicalRelease,
|
physicalRelease,
|
||||||
@ -370,7 +371,7 @@ class MovieDetails extends Component {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={styles.title} style={{ width: marqueeWidth }}>
|
<div className={styles.title} style={{ width: marqueeWidth }}>
|
||||||
<Marquee text={title} />
|
<Marquee text={title} title={originalTitle} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -736,6 +737,7 @@ MovieDetails.propTypes = {
|
|||||||
tmdbId: PropTypes.number.isRequired,
|
tmdbId: PropTypes.number.isRequired,
|
||||||
imdbId: PropTypes.string,
|
imdbId: PropTypes.string,
|
||||||
title: PropTypes.string.isRequired,
|
title: PropTypes.string.isRequired,
|
||||||
|
originalTitle: PropTypes.string,
|
||||||
year: PropTypes.number.isRequired,
|
year: PropTypes.number.isRequired,
|
||||||
runtime: PropTypes.number.isRequired,
|
runtime: PropTypes.number.isRequired,
|
||||||
certification: PropTypes.string,
|
certification: PropTypes.string,
|
||||||
|
@ -91,7 +91,7 @@ public static MovieResource ToResource(this Movie model)
|
|||||||
Id = model.Id,
|
Id = model.Id,
|
||||||
TmdbId = model.TmdbId,
|
TmdbId = model.TmdbId,
|
||||||
Title = model.Title,
|
Title = model.Title,
|
||||||
OriginalTitle = model.Title,
|
OriginalTitle = model.OriginalTitle,
|
||||||
SortTitle = model.SortTitle,
|
SortTitle = model.SortTitle,
|
||||||
InCinemas = model.InCinemas,
|
InCinemas = model.InCinemas,
|
||||||
PhysicalRelease = model.PhysicalRelease,
|
PhysicalRelease = model.PhysicalRelease,
|
||||||
@ -154,7 +154,7 @@ public static MovieResource ToResource(this Movie model, MovieTranslation movieT
|
|||||||
Id = model.Id,
|
Id = model.Id,
|
||||||
TmdbId = model.TmdbId,
|
TmdbId = model.TmdbId,
|
||||||
Title = translatedTitle,
|
Title = translatedTitle,
|
||||||
OriginalTitle = model.Title,
|
OriginalTitle = model.OriginalTitle,
|
||||||
SortTitle = translatedTitle.NormalizeTitle(),
|
SortTitle = translatedTitle.NormalizeTitle(),
|
||||||
InCinemas = model.InCinemas,
|
InCinemas = model.InCinemas,
|
||||||
PhysicalRelease = model.PhysicalRelease,
|
PhysicalRelease = model.PhysicalRelease,
|
||||||
@ -217,6 +217,7 @@ public static MovieResource ToResource(this Movie model, IUpgradableSpecificatio
|
|||||||
Id = model.Id,
|
Id = model.Id,
|
||||||
TmdbId = model.TmdbId,
|
TmdbId = model.TmdbId,
|
||||||
Title = translatedTitle,
|
Title = translatedTitle,
|
||||||
|
OriginalTitle = model.OriginalTitle,
|
||||||
SortTitle = translatedTitle.NormalizeTitle(),
|
SortTitle = translatedTitle.NormalizeTitle(),
|
||||||
InCinemas = model.InCinemas,
|
InCinemas = model.InCinemas,
|
||||||
PhysicalRelease = model.PhysicalRelease,
|
PhysicalRelease = model.PhysicalRelease,
|
||||||
@ -274,6 +275,7 @@ public static Movie ToModel(this MovieResource resource)
|
|||||||
TmdbId = resource.TmdbId,
|
TmdbId = resource.TmdbId,
|
||||||
|
|
||||||
Title = resource.Title,
|
Title = resource.Title,
|
||||||
|
OriginalTitle = resource.OriginalTitle,
|
||||||
SortTitle = resource.SortTitle,
|
SortTitle = resource.SortTitle,
|
||||||
InCinemas = resource.InCinemas,
|
InCinemas = resource.InCinemas,
|
||||||
PhysicalRelease = resource.PhysicalRelease,
|
PhysicalRelease = resource.PhysicalRelease,
|
||||||
|
Loading…
Reference in New Issue
Block a user