fix(blacklist): hide items from MediaSliders when hideBlacklisted is enabled (#1713)
This PR hides the blacklisted items from the MediaSliders appearing on the homepage when the hideBlacklisted is enabled.
This commit is contained in:
@@ -74,6 +74,14 @@ const MediaSlider = ({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (settings.currentSettings.hideBlacklisted) {
|
||||||
|
titles = titles.filter(
|
||||||
|
(i) =>
|
||||||
|
(i.mediaType === 'movie' || i.mediaType === 'tv') &&
|
||||||
|
i.mediaInfo?.status !== MediaStatus.BLACKLISTED
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (
|
if (
|
||||||
titles.length < 24 &&
|
titles.length < 24 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user