Remove trailers tab

This commit is contained in:
Bill Thornton
2025-04-03 03:05:45 -04:00
parent 971dcc162d
commit d64a17e3eb
10 changed files with 14 additions and 349 deletions
@@ -44,15 +44,6 @@ const photosOrPhotoAlbumsOptions = [
const sortOptionsMapping: SortOptionsMapping = {
[LibraryTab.Movies]: movieOrFavoriteOptions,
[LibraryTab.Trailers]: [
{ label: 'Name', value: ItemSortBy.SortName },
{ label: 'OptionCommunityRating', value: ItemSortBy.CommunityRating },
{ label: 'OptionDateAdded', value: ItemSortBy.DateCreated },
{ label: 'OptionDatePlayed', value: ItemSortBy.DatePlayed },
{ label: 'OptionParentalRating', value: ItemSortBy.OfficialRating },
{ label: 'OptionPlayCount', value: ItemSortBy.PlayCount },
{ label: 'OptionReleaseDate', value: ItemSortBy.PremiereDate }
],
[LibraryTab.Favorites]: movieOrFavoriteOptions,
[LibraryTab.Series]: [
{ label: 'Name', value: ItemSortBy.SortName },
@@ -55,21 +55,16 @@ export const LibraryRoutes: LibraryRoute[] = [
},
{
index: 2,
label: 'Trailers',
view: LibraryTab.Trailers
},
{
index: 3,
label: 'Favorites',
view: LibraryTab.Favorites
},
{
index: 4,
index: 3,
label: 'Collections',
view: LibraryTab.Collections
},
{
index: 5,
index: 4,
label: 'Genres',
view: LibraryTab.Genres
}
+3 -10
View File
@@ -31,12 +31,6 @@ const favoritesTabContent: LibraryTabContent = {
itemType: [BaseItemKind.Movie]
};
const trailersTabContent: LibraryTabContent = {
viewType: LibraryTab.Trailers,
itemType: [BaseItemKind.Trailer],
noItemsMessage: 'MessageNoTrailersFound'
};
const suggestionsTabContent: LibraryTabContent = {
viewType: LibraryTab.Suggestions,
collectionType: CollectionType.Movies,
@@ -52,10 +46,9 @@ const genresTabContent: LibraryTabContent = {
const moviesTabMapping: LibraryTabMapping = {
0: moviesTabContent,
1: suggestionsTabContent,
2: trailersTabContent,
3: favoritesTabContent,
4: collectionsTabContent,
5: genresTabContent
2: favoritesTabContent,
3: collectionsTabContent,
4: genresTabContent
};
const Movies: FC = () => {