mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-27 17:18:29 +01:00
Compare commits
4 Commits
v0.8.1
...
hotfix/lim
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bbf926e752 | ||
|
|
9b2a0487d2 | ||
|
|
a73488614c | ||
|
|
03fdf31b4b |
@@ -87,6 +87,12 @@ We welcome any help to make Streamyfin better. If you'd like to contribute, plea
|
|||||||
|
|
||||||
### Development info
|
### Development info
|
||||||
|
|
||||||
|
1. Use node `20`
|
||||||
|
2. Install deps `bun i`
|
||||||
|
3. `Create an expo dev build by running `npx expo run:ios` or `npx expo run:android`.
|
||||||
|
|
||||||
|
## Extended chromecast controls
|
||||||
|
|
||||||
Add this to AppDelegate.mm:
|
Add this to AppDelegate.mm:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ export default function index() {
|
|||||||
await getTvShowsApi(api).getNextUp({
|
await getTvShowsApi(api).getNextUp({
|
||||||
userId: user?.Id,
|
userId: user?.Id,
|
||||||
fields: ["MediaSourceCount"],
|
fields: ["MediaSourceCount"],
|
||||||
|
limit: 20,
|
||||||
})
|
})
|
||||||
).data.Items) ||
|
).data.Items) ||
|
||||||
[],
|
[],
|
||||||
|
|||||||
@@ -1,17 +1,15 @@
|
|||||||
|
import { apiAtom, userAtom } from "@/providers/JellyfinProvider";
|
||||||
import { BaseItemDto } from "@jellyfin/sdk/lib/generated-client/models";
|
import { BaseItemDto } from "@jellyfin/sdk/lib/generated-client/models";
|
||||||
|
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api";
|
||||||
|
import { useQuery } from "@tanstack/react-query";
|
||||||
|
import { router } from "expo-router";
|
||||||
|
import { useAtom } from "jotai";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { TouchableOpacity, View } from "react-native";
|
import { TouchableOpacity, View } from "react-native";
|
||||||
import { HorizontalScroll } from "../common/HorrizontalScroll";
|
import { HorizontalScroll } from "../common/HorrizontalScroll";
|
||||||
import { Text } from "../common/Text";
|
import { Text } from "../common/Text";
|
||||||
import Poster from "../posters/Poster";
|
|
||||||
import ContinueWatchingPoster from "../ContinueWatchingPoster";
|
import ContinueWatchingPoster from "../ContinueWatchingPoster";
|
||||||
import { ItemCardText } from "../ItemCardText";
|
import { ItemCardText } from "../ItemCardText";
|
||||||
import { router } from "expo-router";
|
|
||||||
import { useQuery } from "@tanstack/react-query";
|
|
||||||
import { useAtom } from "jotai";
|
|
||||||
import { apiAtom, userAtom } from "@/providers/JellyfinProvider";
|
|
||||||
import { nextUp } from "@/utils/jellyfin/tvshows/nextUp";
|
|
||||||
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api";
|
|
||||||
|
|
||||||
export const NextUp: React.FC<{ seriesId: string }> = ({ seriesId }) => {
|
export const NextUp: React.FC<{ seriesId: string }> = ({ seriesId }) => {
|
||||||
const [user] = useAtom(userAtom);
|
const [user] = useAtom(userAtom);
|
||||||
@@ -26,6 +24,7 @@ export const NextUp: React.FC<{ seriesId: string }> = ({ seriesId }) => {
|
|||||||
userId: user?.Id,
|
userId: user?.Id,
|
||||||
seriesId,
|
seriesId,
|
||||||
fields: ["MediaSourceCount"],
|
fields: ["MediaSourceCount"],
|
||||||
|
limit: 10,
|
||||||
})
|
})
|
||||||
).data.Items;
|
).data.Items;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user