This commit is contained in:
Alex Kim
2024-12-08 07:15:34 +11:00
parent 3db12bd76a
commit a4cd3ea600
5 changed files with 583 additions and 278 deletions

View File

@@ -6,14 +6,17 @@ import { atom, useAtom } from "jotai";
import { useEffect, useMemo, useState } from "react";
import { View } from "react-native";
import ContinueWatchingPoster from "../ContinueWatchingPoster";
import {DownloadItems, DownloadSingleItem} from "../DownloadItem";
import { DownloadItems, DownloadSingleItem } from "../DownloadItem";
import { Loader } from "../Loader";
import { Text } from "../common/Text";
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api";
import { getUserItemData } from "@/utils/jellyfin/user-library/getUserItemData";
import { TouchableItemRouter } from "../common/TouchableItemRouter";
import {SeasonDropdown, SeasonIndexState} from "@/components/series/SeasonDropdown";
import {Ionicons, MaterialCommunityIcons} from "@expo/vector-icons";
import {
SeasonDropdown,
SeasonIndexState,
} from "@/components/series/SeasonDropdown";
import { Ionicons, MaterialCommunityIcons } from "@expo/vector-icons";
type Props = {
item: BaseItemDto;
@@ -119,14 +122,23 @@ export const SeasonPicker: React.FC<Props> = ({ item, initialSeasonIndex }) => {
...prev,
[item.Id ?? ""]: season.IndexNumber,
}));
}} />
}}
/>
<DownloadItems
items={episodes || []}
MissingDownloadIconComponent={() => (
<MaterialCommunityIcons name="download-multiple" size={24} color="white"/>
<MaterialCommunityIcons
name="download-multiple"
size={24}
color="white"
/>
)}
DownloadedIconComponent={() => (
<MaterialCommunityIcons name="check-all" size={24} color="#9333ea"/>
<MaterialCommunityIcons
name="check-all"
size={24}
color="#9333ea"
/>
)}
/>
</View>