Compare commits

...

11 Commits

Author SHA1 Message Date
Fredrik Burmester
ece40534ac Fix carousel behavior and settings option 2025-11-07 08:46:10 +01:00
Fredrik Burmester
ce37351099 fix(android): possible fix for notifications 2025-11-07 08:08:01 +01:00
Fredrik Burmester
e4e1e556bf chore: version 2025-11-07 08:07:02 +01:00
lostb1t
1ff723b29f Update ItemContent.tsx
Some checks failed
🏗️ Build Apps / 🤖 Build Android APK (Phone) (push) Has been cancelled
🏗️ Build Apps / 🤖 Build Android APK (TV) (push) Has been cancelled
🏗️ Build Apps / 🍎 Build iOS IPA (Phone) (push) Has been cancelled
🔒 Lockfile Consistency Check / 🔍 Check bun.lock and package.json consistency (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (actions) (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (javascript-typescript) (push) Has been cancelled
🏷️🔀Merge Conflict Labeler / 🏷️ Labeling Merge Conflicts (push) Has been cancelled
🚦 Security & Quality Gate / 📝 Validate PR Title (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Vulnerable Dependencies (push) Has been cancelled
🚦 Security & Quality Gate / 🚑 Expo Doctor Check (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (check) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (format) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (lint) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (typecheck) (push) Has been cancelled
🕒 Handle Stale Issues / 🗑️ Cleanup Stale Issues (push) Has been cancelled
2025-11-06 16:16:51 +01:00
lostb1t
11d35c846d Update ItemContent.tsx 2025-11-06 16:10:12 +01:00
lostb1t
ce82f3044b Update ItemContent.tsx
Some checks failed
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (javascript-typescript) (push) Has been cancelled
🏷️🔀Merge Conflict Labeler / 🏷️ Labeling Merge Conflicts (push) Has been cancelled
🏗️ Build Apps / 🤖 Build Android APK (Phone) (push) Has been cancelled
🏗️ Build Apps / 🤖 Build Android APK (TV) (push) Has been cancelled
🏗️ Build Apps / 🍎 Build iOS IPA (Phone) (push) Has been cancelled
🔒 Lockfile Consistency Check / 🔍 Check bun.lock and package.json consistency (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (actions) (push) Has been cancelled
🚦 Security & Quality Gate / 📝 Validate PR Title (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Vulnerable Dependencies (push) Has been cancelled
🚦 Security & Quality Gate / 🚑 Expo Doctor Check (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (check) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (format) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (lint) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (typecheck) (push) Has been cancelled
2025-11-06 13:34:55 +01:00
lostb1t
df638dae28 Update ItemContent.tsx 2025-11-06 13:32:28 +01:00
Jonah
9a5e49ae16 fix: omit includeItemTypes in getLatestMedia if possible (#1141)
Some checks failed
🏗️ Build Apps / 🤖 Build Android APK (Phone) (push) Has been cancelled
🏗️ Build Apps / 🤖 Build Android APK (TV) (push) Has been cancelled
🏗️ Build Apps / 🍎 Build iOS IPA (Phone) (push) Has been cancelled
🔒 Lockfile Consistency Check / 🔍 Check bun.lock and package.json consistency (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (actions) (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (javascript-typescript) (push) Has been cancelled
🏷️🔀Merge Conflict Labeler / 🏷️ Labeling Merge Conflicts (push) Has been cancelled
🚦 Security & Quality Gate / 📝 Validate PR Title (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Vulnerable Dependencies (push) Has been cancelled
🚦 Security & Quality Gate / 🚑 Expo Doctor Check (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (check) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (format) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (lint) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (typecheck) (push) Has been cancelled
🕒 Handle Stale Issues / 🗑️ Cleanup Stale Issues (push) Has been cancelled
2025-11-04 16:22:10 +01:00
renovate[bot]
4f2120f85d chore(deps): Update github/codeql-action action to v4.31.2 (#1152)
Some checks failed
🏗️ Build Apps / 🤖 Build Android APK (Phone) (push) Has been cancelled
🏗️ Build Apps / 🤖 Build Android APK (TV) (push) Has been cancelled
🏗️ Build Apps / 🍎 Build iOS IPA (Phone) (push) Has been cancelled
🔒 Lockfile Consistency Check / 🔍 Check bun.lock and package.json consistency (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (actions) (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (javascript-typescript) (push) Has been cancelled
🏷️🔀Merge Conflict Labeler / 🏷️ Labeling Merge Conflicts (push) Has been cancelled
🚦 Security & Quality Gate / 📝 Validate PR Title (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Vulnerable Dependencies (push) Has been cancelled
🚦 Security & Quality Gate / 🚑 Expo Doctor Check (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (check) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (format) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (lint) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (typecheck) (push) Has been cancelled
🕒 Handle Stale Issues / 🗑️ Cleanup Stale Issues (push) Has been cancelled
🌐 Translation Sync / sync-translations (push) Has been cancelled
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-31 10:20:39 +01:00
Fredrik Burmester
8eeea35441 chore: bump version to 0.40.0 2025-10-31 08:37:50 +01:00
Fredrik Burmester
781464b768 chore: update to bun 1.3 2025-10-31 08:25:02 +01:00
12 changed files with 271 additions and 482 deletions

View File

@@ -31,13 +31,13 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: 🏁 Initialize CodeQL - name: 🏁 Initialize CodeQL
uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0 uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
queries: +security-extended,security-and-quality queries: +security-extended,security-and-quality
- name: 🛠️ Autobuild - name: 🛠️ Autobuild
uses: github/codeql-action/autobuild@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0 uses: github/codeql-action/autobuild@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
- name: 🧪 Perform CodeQL Analysis - name: 🧪 Perform CodeQL Analysis
uses: github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0 uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2

View File

@@ -10,10 +10,15 @@ module.exports = ({ config }) => {
// Add the background downloader plugin only for non-TV builds // Add the background downloader plugin only for non-TV builds
config.plugins.push("./plugins/withRNBackgroundDownloader.js"); config.plugins.push("./plugins/withRNBackgroundDownloader.js");
} }
// Only override googleServicesFile if env var is set
const androidConfig = {};
if (process.env.GOOGLE_SERVICES_JSON) {
androidConfig.googleServicesFile = process.env.GOOGLE_SERVICES_JSON;
}
return { return {
android: { ...(Object.keys(androidConfig).length > 0 && { android: androidConfig }),
googleServicesFile: process.env.GOOGLE_SERVICES_JSON,
},
...config, ...config,
}; };
}; };

View File

@@ -2,7 +2,7 @@
"expo": { "expo": {
"name": "Streamyfin", "name": "Streamyfin",
"slug": "streamyfin", "slug": "streamyfin",
"version": "0.39.0", "version": "0.40.1",
"orientation": "default", "orientation": "default",
"icon": "./assets/images/icon.png", "icon": "./assets/images/icon.png",
"scheme": "streamyfin", "scheme": "streamyfin",
@@ -37,7 +37,7 @@
}, },
"android": { "android": {
"jsEngine": "hermes", "jsEngine": "hermes",
"versionCode": 71, "versionCode": 73,
"adaptiveIcon": { "adaptiveIcon": {
"foregroundImage": "./assets/images/icon-android-plain.png", "foregroundImage": "./assets/images/icon-android-plain.png",
"monochromeImage": "./assets/images/icon-android-themed.png", "monochromeImage": "./assets/images/icon-android-themed.png",

562
bun.lock

File diff suppressed because it is too large Load Diff

View File

@@ -39,7 +39,7 @@ interface AppleTVCarouselProps {
const { width: screenWidth, height: screenHeight } = Dimensions.get("window"); const { width: screenWidth, height: screenHeight } = Dimensions.get("window");
// Layout Constants // Layout Constants
const CAROUSEL_HEIGHT = screenHeight / 1.45; export const APPLE_TV_CAROUSEL_HEIGHT = screenHeight / 1.45;
const GRADIENT_HEIGHT_TOP = 150; const GRADIENT_HEIGHT_TOP = 150;
const GRADIENT_HEIGHT_BOTTOM = 150; const GRADIENT_HEIGHT_BOTTOM = 150;
const LOGO_HEIGHT = 80; const LOGO_HEIGHT = 80;
@@ -381,7 +381,7 @@ export const AppleTVCarousel: React.FC<AppleTVCarouselProps> = ({
<View <View
style={{ style={{
width: screenWidth, width: screenWidth,
height: CAROUSEL_HEIGHT, height: APPLE_TV_CAROUSEL_HEIGHT,
backgroundColor: "#000", backgroundColor: "#000",
}} }}
> >
@@ -549,7 +549,7 @@ export const AppleTVCarousel: React.FC<AppleTVCarouselProps> = ({
key={item.Id} key={item.Id}
style={{ style={{
width: screenWidth, width: screenWidth,
height: CAROUSEL_HEIGHT, height: APPLE_TV_CAROUSEL_HEIGHT,
position: "relative", position: "relative",
}} }}
> >
@@ -731,7 +731,7 @@ export const AppleTVCarousel: React.FC<AppleTVCarouselProps> = ({
return ( return (
<View <View
style={{ style={{
height: CAROUSEL_HEIGHT, height: APPLE_TV_CAROUSEL_HEIGHT,
backgroundColor: "#000", backgroundColor: "#000",
overflow: "hidden", overflow: "hidden",
}} }}
@@ -749,7 +749,7 @@ export const AppleTVCarousel: React.FC<AppleTVCarouselProps> = ({
return ( return (
<View <View
style={{ style={{
height: CAROUSEL_HEIGHT, // Fixed height instead of flex: 1 height: APPLE_TV_CAROUSEL_HEIGHT, // Fixed height instead of flex: 1
backgroundColor: "#000", backgroundColor: "#000",
overflow: "hidden", overflow: "hidden",
}} }}
@@ -758,7 +758,7 @@ export const AppleTVCarousel: React.FC<AppleTVCarouselProps> = ({
<Animated.View <Animated.View
style={[ style={[
{ {
height: CAROUSEL_HEIGHT, // Fixed height instead of flex: 1 height: APPLE_TV_CAROUSEL_HEIGHT, // Fixed height instead of flex: 1
flexDirection: "row", flexDirection: "row",
width: screenWidth * items.length, width: screenWidth * items.length,
}, },

View File

@@ -1,6 +1,19 @@
import { LinearGradient } from "expo-linear-gradient"; import { LinearGradient } from "expo-linear-gradient";
import type { PropsWithChildren, ReactElement } from "react"; import type {
import { type NativeScrollEvent, View, type ViewProps } from "react-native"; MutableRefObject,
PropsWithChildren,
ReactElement,
Ref,
} from "react";
import { useEffect } from "react";
import {
type NativeScrollEvent,
type ScrollViewProps,
type StyleProp,
View,
type ViewProps,
type ViewStyle,
} from "react-native";
import Animated, { import Animated, {
interpolate, interpolate,
useAnimatedRef, useAnimatedRef,
@@ -14,6 +27,9 @@ interface Props extends ViewProps {
episodePoster?: ReactElement; episodePoster?: ReactElement;
headerHeight?: number; headerHeight?: number;
onEndReached?: (() => void) | null | undefined; onEndReached?: (() => void) | null | undefined;
scrollViewProps?: Animated.AnimatedProps<ScrollViewProps>;
contentContainerStyle?: StyleProp<ViewStyle>;
scrollViewRef?: Ref<Animated.ScrollView>;
} }
export const ParallaxScrollView: React.FC<PropsWithChildren<Props>> = ({ export const ParallaxScrollView: React.FC<PropsWithChildren<Props>> = ({
@@ -23,10 +39,33 @@ export const ParallaxScrollView: React.FC<PropsWithChildren<Props>> = ({
headerHeight = 400, headerHeight = 400,
logo, logo,
onEndReached, onEndReached,
contentContainerStyle,
scrollViewProps,
scrollViewRef,
...props ...props
}: Props) => { }: Props) => {
const scrollRef = useAnimatedRef<Animated.ScrollView>(); const animatedScrollRef = useAnimatedRef<Animated.ScrollView>();
const scrollOffset = useScrollViewOffset(scrollRef); const scrollOffset = useScrollViewOffset(animatedScrollRef);
const {
onScroll: externalOnScroll,
style: scrollStyle,
scrollEventThrottle: externalScrollEventThrottle,
...restScrollViewProps
} = scrollViewProps ?? {};
useEffect(() => {
if (!scrollViewRef) return;
const node = animatedScrollRef.current;
if (typeof scrollViewRef === "function") {
scrollViewRef(node);
return () => scrollViewRef(null);
}
(scrollViewRef as MutableRefObject<Animated.ScrollView | null>).current =
node;
}, [animatedScrollRef, scrollViewRef]);
const headerAnimatedStyle = useAnimatedStyle(() => { const headerAnimatedStyle = useAnimatedStyle(() => {
return { return {
@@ -62,12 +101,17 @@ export const ParallaxScrollView: React.FC<PropsWithChildren<Props>> = ({
return ( return (
<View className='flex-1' {...props}> <View className='flex-1' {...props}>
<Animated.ScrollView <Animated.ScrollView
style={{ {...restScrollViewProps}
position: "relative", style={[
}} {
ref={scrollRef} position: "relative",
scrollEventThrottle={16} },
scrollStyle,
]}
ref={animatedScrollRef}
scrollEventThrottle={externalScrollEventThrottle ?? 16}
onScroll={(e) => { onScroll={(e) => {
externalOnScroll?.(e);
if (isCloseToBottom(e.nativeEvent)) onEndReached?.(); if (isCloseToBottom(e.nativeEvent)) onEndReached?.();
}} }}
> >
@@ -96,9 +140,12 @@ export const ParallaxScrollView: React.FC<PropsWithChildren<Props>> = ({
</Animated.View> </Animated.View>
<View <View
style={{ style={[
top: -50, {
}} top: -50,
},
contentContainerStyle,
]}
className='relative flex-1 bg-transparent pb-24' className='relative flex-1 bg-transparent pb-24'
> >
<LinearGradient <LinearGradient

View File

@@ -16,14 +16,15 @@ import { type QueryFunction, useQuery } from "@tanstack/react-query";
import { useNavigation, useRouter, useSegments } from "expo-router"; import { useNavigation, useRouter, useSegments } from "expo-router";
import { useAtomValue } from "jotai"; import { useAtomValue } from "jotai";
import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import Animated from "react-native-reanimated";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { import {
ActivityIndicator, ActivityIndicator,
Platform, Platform,
RefreshControl, RefreshControl,
ScrollView,
TouchableOpacity, TouchableOpacity,
View, View,
ScrollView,
} from "react-native"; } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context"; import { useSafeAreaInsets } from "react-native-safe-area-context";
import { Button } from "@/components/Button"; import { Button } from "@/components/Button";
@@ -38,7 +39,8 @@ import { useDownload } from "@/providers/DownloadProvider";
import { apiAtom, userAtom } from "@/providers/JellyfinProvider"; import { apiAtom, userAtom } from "@/providers/JellyfinProvider";
import { useSettings } from "@/utils/atoms/settings"; import { useSettings } from "@/utils/atoms/settings";
import { eventBus } from "@/utils/eventBus"; import { eventBus } from "@/utils/eventBus";
import { AppleTVCarousel } from "../AppleTVCarousel"; import { ParallaxScrollView } from "@/components/ParallaxPage";
import { AppleTVCarousel, APPLE_TV_CAROUSEL_HEIGHT } from "../AppleTVCarousel";
type ScrollingCollectionListSection = { type ScrollingCollectionListSection = {
type: "ScrollingCollectionList"; type: "ScrollingCollectionList";
@@ -66,12 +68,13 @@ export const HomeIndex = () => {
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const { settings, refreshStreamyfinPluginSettings } = useSettings(); const { settings, refreshStreamyfinPluginSettings } = useSettings();
const showCarousel = settings?.showHomeCarousel ?? true;
const navigation = useNavigation(); const navigation = useNavigation();
const insets = useSafeAreaInsets(); const insets = useSafeAreaInsets();
const scrollViewRef = useRef<ScrollView>(null); const scrollViewRef = useRef<Animated.ScrollView | null>(null);
const { getDownloadedItems, cleanCacheDirectory } = useDownload(); const { getDownloadedItems, cleanCacheDirectory } = useDownload();
const prevIsConnected = useRef<boolean | null>(false); const prevIsConnected = useRef<boolean | null>(false);
@@ -128,7 +131,7 @@ export const HomeIndex = () => {
const unsubscribe = eventBus.on("scrollToTop", () => { const unsubscribe = eventBus.on("scrollToTop", () => {
if ((segments as string[])[2] === "(home)") if ((segments as string[])[2] === "(home)")
scrollViewRef.current?.scrollTo({ scrollViewRef.current?.scrollTo({
y: Platform.isTV ? -152 : -100, y: 0,
animated: true, animated: true,
}); });
}); });
@@ -216,7 +219,9 @@ export const HomeIndex = () => {
const latestMediaViews = collections.map((c) => { const latestMediaViews = collections.map((c) => {
const includeItemTypes: BaseItemKind[] = const includeItemTypes: BaseItemKind[] =
c.CollectionType === "tvshows" ? ["Series"] : ["Movie"]; c.CollectionType === "tvshows" || c.CollectionType === "movies"
? []
: ["Movie"];
const title = t("home.recently_added_in", { libraryName: c.Name }); const title = t("home.recently_added_in", { libraryName: c.Name });
const queryKey = [ const queryKey = [
"home", "home",
@@ -453,25 +458,36 @@ export const HomeIndex = () => {
</View> </View>
); );
const headerHeight = showCarousel ? APPLE_TV_CAROUSEL_HEIGHT : 120;
const refreshProgressOffset = showCarousel ? 200 : 80;
return ( return (
<ScrollView <ParallaxScrollView
scrollToOverflowEnabled={true} scrollViewRef={scrollViewRef}
ref={scrollViewRef} headerHeight={headerHeight}
nestedScrollEnabled headerImage={
contentInsetAdjustmentBehavior='never' showCarousel ? (
refreshControl={ <AppleTVCarousel initialIndex={0} />
<RefreshControl ) : (
refreshing={loading} <View className='flex-1 bg-black' />
onRefresh={refetch} )
tintColor='white' // For iOS
colors={["white"]} // For Android
progressViewOffset={200} // This offsets the refresh indicator to appear over the carousel
/>
} }
style={{ marginTop: Platform.isTV ? 0 : -100 }} contentContainerStyle={showCarousel ? undefined : { top: 0 }}
contentContainerStyle={{ paddingTop: Platform.isTV ? 0 : 100 }} scrollViewProps={{
refreshControl: (
<RefreshControl
refreshing={loading}
onRefresh={refetch}
tintColor='white'
colors={["white"]}
progressViewOffset={refreshProgressOffset}
/>
),
contentInsetAdjustmentBehavior: "never",
nestedScrollEnabled: true,
scrollToOverflowEnabled: true,
}}
> >
<AppleTVCarousel initialIndex={0} />
<View <View
style={{ style={{
paddingLeft: insets.left, paddingLeft: insets.left,
@@ -507,7 +523,7 @@ export const HomeIndex = () => {
</View> </View>
</View> </View>
<View className='h-24' /> <View className='h-24' />
</ScrollView> </ParallaxScrollView>
); );
}; };

View File

@@ -62,6 +62,7 @@ export const OtherSettings: React.FC = () => {
pluginSettings?.followDeviceOrientation?.locked === true && pluginSettings?.followDeviceOrientation?.locked === true &&
pluginSettings?.defaultVideoOrientation?.locked === true && pluginSettings?.defaultVideoOrientation?.locked === true &&
pluginSettings?.safeAreaInControlsEnabled?.locked === true && pluginSettings?.safeAreaInControlsEnabled?.locked === true &&
pluginSettings?.showHomeCarousel?.locked === true &&
pluginSettings?.showCustomMenuLinks?.locked === true && pluginSettings?.showCustomMenuLinks?.locked === true &&
pluginSettings?.hiddenLibraries?.locked === true && pluginSettings?.hiddenLibraries?.locked === true &&
pluginSettings?.disableHapticFeedback?.locked === true, pluginSettings?.disableHapticFeedback?.locked === true,
@@ -158,6 +159,19 @@ export const OtherSettings: React.FC = () => {
/> />
</ListItem> </ListItem>
<ListItem
title={t("home.settings.other.show_home_carousel")}
disabled={pluginSettings?.showHomeCarousel?.locked}
>
<Switch
value={settings.showHomeCarousel}
disabled={pluginSettings?.showHomeCarousel?.locked}
onValueChange={(value) =>
updateSettings({ showHomeCarousel: value })
}
/>
</ListItem>
{/* {(Platform.OS === "ios" || Platform.isTVOS)&& ( {/* {(Platform.OS === "ios" || Platform.isTVOS)&& (
<ListItem <ListItem
title={t("home.settings.other.video_player")} title={t("home.settings.other.video_player")}

View File

@@ -45,14 +45,14 @@
}, },
"production": { "production": {
"environment": "production", "environment": "production",
"channel": "0.39.0", "channel": "0.40.1",
"android": { "android": {
"image": "latest" "image": "latest"
} }
}, },
"production-apk": { "production-apk": {
"environment": "production", "environment": "production",
"channel": "0.39.0", "channel": "0.40.1",
"android": { "android": {
"buildType": "apk", "buildType": "apk",
"image": "latest" "image": "latest"
@@ -60,7 +60,7 @@
}, },
"production-apk-tv": { "production-apk-tv": {
"environment": "production", "environment": "production",
"channel": "0.39.0", "channel": "0.40.1",
"android": { "android": {
"buildType": "apk", "buildType": "apk",
"image": "latest" "image": "latest"

View File

@@ -64,7 +64,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
setJellyfin( setJellyfin(
() => () =>
new Jellyfin({ new Jellyfin({
clientInfo: { name: "Streamyfin", version: "0.39.0" }, clientInfo: { name: "Streamyfin", version: "0.40.1" },
deviceInfo: { deviceInfo: {
name: deviceName, name: deviceName,
id, id,
@@ -87,7 +87,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
return { return {
authorization: `MediaBrowser Client="Streamyfin", Device=${ authorization: `MediaBrowser Client="Streamyfin", Device=${
Platform.OS === "android" ? "Android" : "iOS" Platform.OS === "android" ? "Android" : "iOS"
}, DeviceId="${deviceId}", Version="0.39.0"`, }, DeviceId="${deviceId}", Version="0.40.1"`,
}; };
}, [deviceId]); }, [deviceId]);

View File

@@ -176,6 +176,7 @@
"UNKNOWN": "Unknown" "UNKNOWN": "Unknown"
}, },
"safe_area_in_controls": "Safe Area in Controls", "safe_area_in_controls": "Safe Area in Controls",
"show_home_carousel": "Show Home Carousel",
"video_player": "Video Player", "video_player": "Video Player",
"video_players": { "video_players": {
"VLC_3": "VLC 3", "VLC_3": "VLC 3",

View File

@@ -160,6 +160,7 @@ export type Settings = {
subtitleMode: SubtitlePlaybackMode; subtitleMode: SubtitlePlaybackMode;
rememberSubtitleSelections: boolean; rememberSubtitleSelections: boolean;
showHomeTitles: boolean; showHomeTitles: boolean;
showHomeCarousel: boolean;
defaultVideoOrientation: ScreenOrientation.OrientationLock; defaultVideoOrientation: ScreenOrientation.OrientationLock;
forwardSkipTime: number; forwardSkipTime: number;
rewindSkipTime: number; rewindSkipTime: number;
@@ -228,6 +229,7 @@ export const defaultValues: Settings = {
subtitleMode: SubtitlePlaybackMode.Default, subtitleMode: SubtitlePlaybackMode.Default,
rememberSubtitleSelections: true, rememberSubtitleSelections: true,
showHomeTitles: true, showHomeTitles: true,
showHomeCarousel: true,
defaultVideoOrientation: ScreenOrientation.OrientationLock.DEFAULT, defaultVideoOrientation: ScreenOrientation.OrientationLock.DEFAULT,
forwardSkipTime: 30, forwardSkipTime: 30,
rewindSkipTime: 10, rewindSkipTime: 10,