diff --git a/app/(auth)/(tabs)/(home)/downloads/index.tsx b/app/(auth)/(tabs)/(home)/downloads/index.tsx
index 2d4dcaa5..56f21af3 100644
--- a/app/(auth)/(tabs)/(home)/downloads/index.tsx
+++ b/app/(auth)/(tabs)/(home)/downloads/index.tsx
@@ -6,16 +6,21 @@ import { DownloadedItem, useDownload } from "@/providers/DownloadProvider";
import { queueAtom } from "@/utils/atoms/queue";
import { useSettings } from "@/utils/atoms/settings";
import { Ionicons } from "@expo/vector-icons";
-import {useNavigation, useRouter} from "expo-router";
+import { useNavigation, useRouter } from "expo-router";
import { useAtom } from "jotai";
-import React, {useEffect, useMemo, useRef} from "react";
-import {Alert, ScrollView, TouchableOpacity, View} from "react-native";
+import React, { useEffect, useMemo, useRef } from "react";
+import { Alert, ScrollView, TouchableOpacity, View } from "react-native";
import { Button } from "@/components/Button";
import { useSafeAreaInsets } from "react-native-safe-area-context";
-import {DownloadSize} from "@/components/downloads/DownloadSize";
-import {BottomSheetBackdrop, BottomSheetBackdropProps, BottomSheetModal, BottomSheetView} from "@gorhom/bottom-sheet";
-import {toast} from "sonner-native";
-import {writeToLog} from "@/utils/log";
+import { DownloadSize } from "@/components/downloads/DownloadSize";
+import {
+ BottomSheetBackdrop,
+ BottomSheetBackdropProps,
+ BottomSheetModal,
+ BottomSheetView,
+} from "@gorhom/bottom-sheet";
+import { toast } from "sonner-native";
+import { writeToLog } from "@/utils/log";
export default function page() {
const navigation = useNavigation();
@@ -56,28 +61,29 @@ export default function page() {
useEffect(() => {
navigation.setOptions({
headerRight: () => (
-
- f.item) || []}/>
+
+ f.item) || []} />
- )
- })
+ ),
+ });
}, [downloadedFiles]);
- const deleteMovies = () => deleteFileByType("Movie")
- .then(() => toast.success("Deleted all movies successfully!"))
- .catch((reason) => {
- writeToLog("ERROR", reason);
- toast.error("Failed to delete all movies");
- });
- const deleteShows = () => deleteFileByType("Episode")
- .then(() => toast.success("Deleted all TV-Series successfully!"))
- .catch((reason) => {
- writeToLog("ERROR", reason);
- toast.error("Failed to delete all TV-Series");
- });
- const deleteAllMedia = async () => await Promise.all([deleteMovies(), deleteShows()])
+ const deleteMovies = () =>
+ deleteFileByType("Movie")
+ .then(() => toast.success("Deleted all movies successfully!"))
+ .catch((reason) => {
+ writeToLog("ERROR", reason);
+ toast.error("Failed to delete all movies");
+ });
+ const deleteShows = () =>
+ deleteFileByType("Episode")
+ .then(() => toast.success("Deleted all TV-Series successfully!"))
+ .catch((reason) => {
+ writeToLog("ERROR", reason);
+ toast.error("Failed to delete all TV-Series");
+ });
+ const deleteAllMedia = async () =>
+ await Promise.all([deleteMovies(), deleteShows()]);
return (
<>
@@ -94,7 +100,7 @@ export default function page() {
Queue
- Queue and downloads will be lost on app restart
+ Queue and active downloads will be lost on app restart
{queue.map((q, index) => (
@@ -107,7 +113,9 @@ export default function page() {
>
{q.item.Name}
- {q.item.Type}
+
+ {q.item.Type}
+
{
@@ -118,7 +126,7 @@ export default function page() {
});
}}
>
-
+
))}
@@ -130,7 +138,7 @@ export default function page() {
)}
-
+
{movies.length > 0 && (
@@ -145,7 +153,7 @@ export default function page() {
{movies?.map((item) => (
-
+
))}
@@ -157,13 +165,18 @@ export default function page() {
TV-Series
- {groupedBySeries?.length}
+
+ {groupedBySeries?.length}
+
{groupedBySeries?.map((items) => (
-
+
i.item)}
key={items[0].item.SeriesId}
@@ -200,9 +213,15 @@ export default function page() {
>
-
-
-
+
+
+