New: Added tvdb Upcoming series status
This commit is contained in:
parent
d3cd46bb51
commit
d8446c2d5a
frontend/src
AddSeries/AddNewSeries
Components/Filter/Builder
Series
src/NzbDrone.Core/MetadataSource/SkyHook
|
@ -165,6 +165,17 @@ class AddNewSeriesSearchResult extends Component {
|
|||
</Label> :
|
||||
null
|
||||
}
|
||||
|
||||
{
|
||||
status === 'upcoming' ?
|
||||
<Label
|
||||
kind={kinds.INFO}
|
||||
size={sizes.LARGE}
|
||||
>
|
||||
Upcoming
|
||||
</Label> :
|
||||
null
|
||||
}
|
||||
</div>
|
||||
|
||||
<div className={styles.overview}>
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
import React from 'react';
|
||||
import FilterBuilderRowValue from './FilterBuilderRowValue';
|
||||
|
||||
const protocols = [
|
||||
const seriesStatusList = [
|
||||
{ id: 'continuing', name: 'Continuing' },
|
||||
{ id: 'upcoming', name: 'Upcoming' },
|
||||
{ id: 'ended', name: 'Ended' }
|
||||
];
|
||||
|
||||
function SeriesStatusFilterBuilderRowValue(props) {
|
||||
return (
|
||||
<FilterBuilderRowValue
|
||||
tagList={protocols}
|
||||
tagList={seriesStatusList}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
|
|
|
@ -21,6 +21,12 @@ export function getSeriesStatusDetails(status) {
|
|||
title: 'Ended',
|
||||
message: 'No additional episodes or or another season is expected'
|
||||
};
|
||||
} else if (status === 'upcoming') {
|
||||
statusDetails = {
|
||||
icon: icons.SERIES_CONTINUING,
|
||||
title: 'Upcoming',
|
||||
message: 'Series has been announced but no exact air date yet'
|
||||
};
|
||||
}
|
||||
|
||||
return statusDetails;
|
||||
|
|
|
@ -244,6 +244,11 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
|
|||
return SeriesStatusType.Ended;
|
||||
}
|
||||
|
||||
if (status.Equals("upcoming", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
return SeriesStatusType.Upcoming;
|
||||
}
|
||||
|
||||
return SeriesStatusType.Continuing;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue