fix: do not display 'Request More' button if no requestable seasons (#2998)

pull/3000/head
TheCatLady 2 years ago committed by GitHub
parent 2950cf4438
commit 23f93e311d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -292,7 +292,6 @@ const RequestButton = ({
}) && }) &&
media && media &&
media.status !== MediaStatus.AVAILABLE && media.status !== MediaStatus.AVAILABLE &&
media.status !== MediaStatus.UNKNOWN &&
!isShowComplete !isShowComplete
) { ) {
buttons.push({ buttons.push({
@ -338,7 +337,6 @@ const RequestButton = ({
}) && }) &&
media && media &&
media.status4k !== MediaStatus.AVAILABLE && media.status4k !== MediaStatus.AVAILABLE &&
media.status4k !== MediaStatus.UNKNOWN &&
!is4kShowComplete && !is4kShowComplete &&
settings.currentSettings.series4kEnabled settings.currentSettings.series4kEnabled
) { ) {

@ -239,7 +239,9 @@ const TvDetails = ({ tv }: TvDetailsProps) => {
seasonCount <= seasonCount <=
( (
data.mediaInfo?.seasons.filter( data.mediaInfo?.seasons.filter(
(season) => season.status === MediaStatus.AVAILABLE (season) =>
season.status === MediaStatus.AVAILABLE ||
season.status === MediaStatus.PARTIALLY_AVAILABLE
) ?? [] ) ?? []
).length; ).length;
@ -247,7 +249,9 @@ const TvDetails = ({ tv }: TvDetailsProps) => {
seasonCount <= seasonCount <=
( (
data.mediaInfo?.seasons.filter( data.mediaInfo?.seasons.filter(
(season) => season.status4k === MediaStatus.AVAILABLE (season) =>
season.status4k === MediaStatus.AVAILABLE ||
season.status4k === MediaStatus.PARTIALLY_AVAILABLE
) ?? [] ) ?? []
).length; ).length;

Loading…
Cancel
Save