- {
- !!runtime &&
-
{
return (
);
@@ -548,10 +542,9 @@ SeriesDetails.propTypes = {
tvMazeId: PropTypes.number,
imdbId: PropTypes.string,
artistName: PropTypes.string.isRequired,
- runtime: PropTypes.number.isRequired,
ratings: PropTypes.object.isRequired,
sizeOnDisk: PropTypes.number.isRequired,
- episodeFileCount: PropTypes.number,
+ trackFileCount: PropTypes.number,
qualityProfileId: PropTypes.number.isRequired,
monitored: PropTypes.bool.isRequired,
status: PropTypes.string.isRequired,
diff --git a/frontend/src/Artist/Details/SeriesDetailsLinks.js b/frontend/src/Artist/Details/SeriesDetailsLinks.js
index 2733c0edb..d1be3d409 100644
--- a/frontend/src/Artist/Details/SeriesDetailsLinks.js
+++ b/frontend/src/Artist/Details/SeriesDetailsLinks.js
@@ -16,30 +16,16 @@ function SeriesDetailsLinks(props) {
-
-
-
-
-
{
!!tvMazeId &&
{
- if (episode.episodeFileId || (episode.monitored && isBefore(episode.airDateUtc))) {
- episodeCount++;
- }
-
- if (episode.episodeFileId) {
- episodeFileCount++;
- }
-
- totalEpisodeCount++;
- });
-
- return {
- episodeCount,
- episodeFileCount,
- totalEpisodeCount
- };
-}
-
function getEpisodeCountKind(monitored, episodeFileCount, episodeCount) {
if (episodeFileCount === episodeCount && episodeCount > 0) {
return kinds.SUCCESS;
@@ -89,7 +65,7 @@ class SeriesDetailsSeason extends Component {
_expandByDefault() {
const {
- seasonNumber,
+ albumId,
onExpandPress,
items
} = this.props;
@@ -99,7 +75,7 @@ class SeriesDetailsSeason extends Component {
isAfter(item.airDateUtc, { days: -30 });
});
- onExpandPress(seasonNumber, expand && seasonNumber > 0);
+ onExpandPress(albumId, expand && albumId > 0);
}
//
@@ -123,11 +99,11 @@ class SeriesDetailsSeason extends Component {
onExpandPress = () => {
const {
- seasonNumber,
+ albumId,
isExpanded
} = this.props;
- this.props.onExpandPress(seasonNumber, !isExpanded);
+ this.props.onExpandPress(albumId, !isExpanded);
}
onMonitorEpisodePress = (episodeId, monitored, { shiftKey }) => {
@@ -155,7 +131,10 @@ class SeriesDetailsSeason extends Component {
const {
artistId,
monitored,
- seasonNumber,
+ title,
+ releaseDate,
+ albumId,
+ statistics,
items,
columns,
isSaving,
@@ -169,10 +148,10 @@ class SeriesDetailsSeason extends Component {
} = this.props;
const {
- episodeCount,
- episodeFileCount,
- totalEpisodeCount
- } = getSeasonStatistics(items);
+ trackCount,
+ trackFileCount,
+ totalTrackCount
+ } = statistics;
const {
isOrganizeModalOpen,
@@ -194,22 +173,22 @@ class SeriesDetailsSeason extends Component {
/>
{
- seasonNumber === 0 ?
+ albumId === 0 ?
Specials
:
- Season {seasonNumber}
+ {title}
}
@@ -218,12 +197,7 @@ class SeriesDetailsSeason extends Component {
className={styles.expandButton}
onPress={this.onExpandPress}
>
-
+
{
!isSmallScreen &&
@@ -277,7 +251,7 @@ class SeriesDetailsSeason extends Component {
name={icons.EPISODE_FILE}
/>
- Manage Episodes
+ Manage Tracks
:
@@ -286,7 +260,7 @@ class SeriesDetailsSeason extends Component {
@@ -303,7 +277,7 @@ class SeriesDetailsSeason extends Component {
@@ -312,59 +286,17 @@ class SeriesDetailsSeason extends Component {