diff --git a/app/(auth)/(tabs)/(libraries)/[libraryId].tsx b/app/(auth)/(tabs)/(libraries)/[libraryId].tsx index 915c362f..d96bf5b5 100644 --- a/app/(auth)/(tabs)/(libraries)/[libraryId].tsx +++ b/app/(auth)/(tabs)/(libraries)/[libraryId].tsx @@ -209,6 +209,10 @@ const Page = () => { itemType = "Series"; } else if (library.CollectionType === "boxsets") { itemType = "BoxSet"; + } else if (library.CollectionType === "homevideos") { + itemType = "Video"; + } else if (library.CollectionType === "musicvideos") { + itemType = "MusicVideo"; } const response = await getItemsApi(api).getItems({ diff --git a/components/library/LibraryItemCard.tsx b/components/library/LibraryItemCard.tsx index efb29013..09de500d 100644 --- a/components/library/LibraryItemCard.tsx +++ b/components/library/LibraryItemCard.tsx @@ -63,6 +63,10 @@ export const LibraryItemCard: React.FC = ({ library, ...props }) => { _itemType = "Series"; } else if (library.CollectionType === "boxsets") { _itemType = "BoxSet"; + } else if (library.CollectionType === "homevideos") { + _itemType = "Video"; + } else if (library.CollectionType === "musicvideos") { + _itemType = "MusicVideo"; } return _itemType; diff --git a/components/settings/PlaybackControlsSettings.tsx b/components/settings/PlaybackControlsSettings.tsx index 00348166..ad6a215e 100644 --- a/components/settings/PlaybackControlsSettings.tsx +++ b/components/settings/PlaybackControlsSettings.tsx @@ -29,6 +29,7 @@ export const PlaybackControlsSettings: React.FC = () => { const orientations = [ ScreenOrientation.OrientationLock.DEFAULT, ScreenOrientation.OrientationLock.PORTRAIT_UP, + ScreenOrientation.OrientationLock.LANDSCAPE, ScreenOrientation.OrientationLock.LANDSCAPE_LEFT, ScreenOrientation.OrientationLock.LANDSCAPE_RIGHT, ]; @@ -39,6 +40,8 @@ export const PlaybackControlsSettings: React.FC = () => { "home.settings.other.orientations.DEFAULT", [ScreenOrientation.OrientationLock.PORTRAIT_UP]: "home.settings.other.orientations.PORTRAIT_UP", + [ScreenOrientation.OrientationLock.LANDSCAPE]: + "home.settings.other.orientations.LANDSCAPE", [ScreenOrientation.OrientationLock.LANDSCAPE_LEFT]: "home.settings.other.orientations.LANDSCAPE_LEFT", [ScreenOrientation.OrientationLock.LANDSCAPE_RIGHT]: diff --git a/hooks/useOrientation.ts b/hooks/useOrientation.ts index 9d77111d..924e6253 100644 --- a/hooks/useOrientation.ts +++ b/hooks/useOrientation.ts @@ -21,6 +21,8 @@ const orientationToOrientationLock = ( return OrientationLock.LANDSCAPE_RIGHT; case Orientation.PORTRAIT_UP: return OrientationLock.PORTRAIT_UP; + case Orientation.UNKNOWN: + return OrientationLock.LANDSCAPE; default: return OrientationLock.PORTRAIT_UP; } diff --git a/translations/en.json b/translations/en.json index 19c12b40..c6652310 100644 --- a/translations/en.json +++ b/translations/en.json @@ -282,12 +282,12 @@ "video_orientation": "Video Orientation", "orientation": "Orientation", "orientations": { - "DEFAULT": "Default", + "DEFAULT": "Follow Device Orientation", "ALL": "All", - "PORTRAIT": "Portrait", + "PORTRAIT": "Portrait Auto", "PORTRAIT_UP": "Portrait Up", "PORTRAIT_DOWN": "Portrait Down", - "LANDSCAPE": "Landscape", + "LANDSCAPE": "Landscape Auto", "LANDSCAPE_LEFT": "Landscape Left", "LANDSCAPE_RIGHT": "Landscape Right", "OTHER": "Other",