Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/app/src/context/SettingsContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ const DEFAULT_HOME_ROWS = [
{id: 'imdb-popular-tv', name: 'IMDb Most Popular TV Shows', enabled: false, order: 18},
{id: 'imdb-lowest-rated', name: 'IMDb Lowest Rated Movies', enabled: false, order: 19},
{id: 'imdb-top-english', name: 'IMDb Top Rated English Movies', enabled: false, order: 20},
{id: 'since-you-watched-1', name: 'Since You Watched Row 1', enabled: false, order: 21},
{id: 'since-you-watched-2', name: 'Since You Watched Row 2', enabled: false, order: 22},
{id: 'since-you-watched-3', name: 'Since You Watched Row 3', enabled: false, order: 23},
{id: 'since-you-watched-4', name: 'Since You Watched Row 4', enabled: false, order: 24},
{id: 'since-you-watched-5', name: 'Since You Watched Row 5', enabled: false, order: 25},
{id: 'sinceyouwatched1', name: 'Since You Watched Row 1', enabled: false, order: 21},
{id: 'sinceyouwatched2', name: 'Since You Watched Row 2', enabled: false, order: 22},
{id: 'sinceyouwatched3', name: 'Since You Watched Row 3', enabled: false, order: 23},
{id: 'sinceyouwatched4', name: 'Since You Watched Row 4', enabled: false, order: 24},
{id: 'sinceyouwatched5', name: 'Since You Watched Row 5', enabled: false, order: 25},
{id: 'rewatch', name: 'Rewatch', enabled: false, order: 26},
{id: 'playlists', name: 'Playlists', enabled: false, order: 27},
{id: 'audioartists', name: 'Music Artists', enabled: false, order: 28},
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/services/homeRecommendations.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export async function loadSinceYouWatchedRows(api, settings, enabledIndexes, onl
const onlineItems = await getOnlineRecommendations(settings, seed).catch(() => []);
if (onlineItems.length) {
return {
id: `since-you-watched-${idx}`,
id: `sinceyouwatched${idx}`,
seedName: seed.Name || '',
items: onlineItems,
isSeerr: true
Expand All @@ -378,7 +378,7 @@ export async function loadSinceYouWatchedRows(api, settings, enabledIndexes, onl
}).catch(() => []);
if (!items.length) return null;
return {
id: `since-you-watched-${idx}`,
id: `sinceyouwatched${idx}`,
seedName: seed.Name || '',
items
};
Expand Down
6 changes: 3 additions & 3 deletions packages/app/src/views/Browse/Browse.js
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ const Browse = ({
// Recommendation rows are only built by fetchAllData, so treat an enabled one
// as dynamic config. Otherwise enabling it shows nothing until the cache expires.
const hasEnabledRecommendationRow = homeRowsConfig.some(
(row) => row.enabled && (row.id.startsWith('since-you-watched-') || row.id === 'rewatch')
(row) => row.enabled && (row.id.startsWith('sinceyouwatched') || row.id === 'rewatch')
);
const hasEnabledMediaSectionRow = homeRowsConfig.some(
(row) => row.enabled && ['audioartists', 'audioalbums', 'audioplaylists', 'resumeaudio', 'activerecordings'].includes(row.id)
Expand Down Expand Up @@ -1283,8 +1283,8 @@ const Browse = ({
const recordingsEnabled = homeRowsConfig.some((row) => row.enabled && row.id === 'activerecordings');
const enabledPluginSections = (settings.pluginSections || []).filter((section) => section.enabled);
const sinceYouWatchedIndexes = homeRowsConfig
.filter((row) => row.enabled && row.id.startsWith('since-you-watched-'))
.map((row) => parseInt(row.id.replace('since-you-watched-', ''), 10))
.filter((row) => row.enabled && row.id.startsWith('sinceyouwatched'))
.map((row) => parseInt(row.id.replace('sinceyouwatched', ''), 10))
.filter((idx) => idx >= 1)
.sort((a, b) => a - b);
const rewatchEnabled = homeRowsConfig.some((row) => row.enabled && row.id === 'rewatch');
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/views/Settings/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,7 @@ const Settings = ({ onBack, onLibrariesChanged, panelMode }) => {
{renderOptionItem('homeRowsPosterSize', $L('Home Row Card Display Size'), getPosterSizeOptions(), $L('Default'), 'aspectratio')}
{renderOptionItem('homeRowOverlay', $L('Home Row Info Overlay'), getHomeRowOverlayOptions(), $L('Off'), 'info')}
{renderNavItem('homeRows', $L('Home Sections'), $L('Reorder and toggle home rows'), openHomeRows, 'list')}
{(settings.homeRows || []).some((row) => row.enabled && row.id.startsWith('since-you-watched-')) && (
{(settings.homeRows || []).some((row) => row.enabled && row.id.startsWith('sinceyouwatched')) && (
<>
{renderOptionItem('sinceYouWatchedSource', $L('Since You Watched Source'), getSinceYouWatchedSourceOptions(), $L('Local'), 'browser')}
{renderOptionItem('sinceYouWatchedSourceItem', $L('Since You Watched Seed'), getSinceYouWatchedSourceItemOptions(), $L('Recently Watched'), 'playcircle')}
Expand Down
Loading