|
|
@ -2,6 +2,7 @@ import React from 'react';
|
|
|
|
import Icon from 'Components/Icon';
|
|
|
|
import Icon from 'Components/Icon';
|
|
|
|
import ImdbRating from 'Components/ImdbRating';
|
|
|
|
import ImdbRating from 'Components/ImdbRating';
|
|
|
|
import RottenTomatoRating from 'Components/RottenTomatoRating';
|
|
|
|
import RottenTomatoRating from 'Components/RottenTomatoRating';
|
|
|
|
|
|
|
|
import TagListConnector from 'Components/TagListConnector';
|
|
|
|
import TmdbRating from 'Components/TmdbRating';
|
|
|
|
import TmdbRating from 'Components/TmdbRating';
|
|
|
|
import { icons } from 'Helpers/Props';
|
|
|
|
import { icons } from 'Helpers/Props';
|
|
|
|
import Language from 'Language/Language';
|
|
|
|
import Language from 'Language/Language';
|
|
|
@ -28,6 +29,7 @@ interface MovieIndexPosterInfoProps {
|
|
|
|
originalTitle: string;
|
|
|
|
originalTitle: string;
|
|
|
|
originalLanguage: Language;
|
|
|
|
originalLanguage: Language;
|
|
|
|
sizeOnDisk?: number;
|
|
|
|
sizeOnDisk?: number;
|
|
|
|
|
|
|
|
tags: number[];
|
|
|
|
sortKey: string;
|
|
|
|
sortKey: string;
|
|
|
|
showRelativeDates: boolean;
|
|
|
|
showRelativeDates: boolean;
|
|
|
|
showCinemaRelease: boolean;
|
|
|
|
showCinemaRelease: boolean;
|
|
|
@ -38,6 +40,7 @@ interface MovieIndexPosterInfoProps {
|
|
|
|
showTmdbRating: boolean;
|
|
|
|
showTmdbRating: boolean;
|
|
|
|
showImdbRating: boolean;
|
|
|
|
showImdbRating: boolean;
|
|
|
|
showRottenTomatoesRating: boolean;
|
|
|
|
showRottenTomatoesRating: boolean;
|
|
|
|
|
|
|
|
showTags: boolean;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function MovieIndexPosterInfo(props: MovieIndexPosterInfoProps) {
|
|
|
|
function MovieIndexPosterInfo(props: MovieIndexPosterInfoProps) {
|
|
|
@ -56,6 +59,7 @@ function MovieIndexPosterInfo(props: MovieIndexPosterInfoProps) {
|
|
|
|
originalTitle,
|
|
|
|
originalTitle,
|
|
|
|
originalLanguage,
|
|
|
|
originalLanguage,
|
|
|
|
sizeOnDisk,
|
|
|
|
sizeOnDisk,
|
|
|
|
|
|
|
|
tags = [],
|
|
|
|
sortKey,
|
|
|
|
sortKey,
|
|
|
|
showRelativeDates,
|
|
|
|
showRelativeDates,
|
|
|
|
showCinemaRelease,
|
|
|
|
showCinemaRelease,
|
|
|
@ -66,6 +70,7 @@ function MovieIndexPosterInfo(props: MovieIndexPosterInfoProps) {
|
|
|
|
showTmdbRating,
|
|
|
|
showTmdbRating,
|
|
|
|
showImdbRating,
|
|
|
|
showImdbRating,
|
|
|
|
showRottenTomatoesRating,
|
|
|
|
showRottenTomatoesRating,
|
|
|
|
|
|
|
|
showTags,
|
|
|
|
} = props;
|
|
|
|
} = props;
|
|
|
|
|
|
|
|
|
|
|
|
if (sortKey === 'studio' && studio) {
|
|
|
|
if (sortKey === 'studio' && studio) {
|
|
|
@ -199,6 +204,16 @@ function MovieIndexPosterInfo(props: MovieIndexPosterInfoProps) {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!showTags && sortKey === 'tags' && tags.length) {
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
<div className={styles.tags}>
|
|
|
|
|
|
|
|
<div className={styles.tagsList}>
|
|
|
|
|
|
|
|
<TagListConnector tags={tags} />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (sortKey === 'path') {
|
|
|
|
if (sortKey === 'path') {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={styles.info} title={translate('Path')}>
|
|
|
|
<div className={styles.info} title={translate('Path')}>
|
|
|
|