+
navigate("/search")}>
search
@@ -423,8 +300,101 @@ export const AppBar = () => {
-
-
+
+
setShowDrawer(false)}
+ >
+
+
+ setShowDrawer(false)}
+ style={{
+ borderRadius: "100px",
+ gap: "0.85em",
+ }}
+ >
+ menu_open
+ Close
+
+
+
+
+
+
+ {libraries.isSuccess &&
+ libraries.data.Items?.map((library, index) => (
+
+ ))}
+
+
+
+
+ {
+ setSettingsDialogOpen(true);
+ setSettingsTabValue(1);
+ }}
+ style={{
+ borderRadius: "100px",
+ gap: "0.85em",
+ }}
+ >
+ settings
+ Settings
+
+
+
+ {
+ setSettingsDialogOpen(true);
+ setSettingsTabValue(2);
+ }}
+ style={{
+ borderRadius: "100px",
+ gap: "0.85em",
+ }}
+ >
+ dns
+ Change Server
+
+
+
+ {
+ setSettingsDialogOpen(true);
+ setSettingsTabValue(10);
+ }}
+ style={{
+ borderRadius: "100px",
+ gap: "0.85em",
+ }}
+ >
+ info
+ About
+
+
+
+
+ >
);
}
};
diff --git a/src/components/buttons/playButton.tsx b/src/components/buttons/playButton.tsx
index 4314d21..028019f 100644
--- a/src/components/buttons/playButton.tsx
+++ b/src/components/buttons/playButton.tsx
@@ -17,6 +17,7 @@ import {
SortOrder,
type UserItemDataDto,
} from "@jellyfin/sdk/lib/generated-client";
+import { getDlnaApi } from "@jellyfin/sdk/lib/utils/api/dlna-api";
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
import { getPlaylistsApi } from "@jellyfin/sdk/lib/utils/api/playlists-api";
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api";
@@ -135,6 +136,8 @@ const PlayButton = ({
mutationFn: async () => {
setPlaybackDataLoading(true);
let result: any;
+ const deviceProfile = await getDlnaApi(api).getDefaultProfile();
+ console.log(deviceProfile);
if (playlistItem) {
result = await getPlaylistsApi(api).getPlaylistItems({
userId: userId,
@@ -246,31 +249,32 @@ const PlayButton = ({
enableSubtitles = false;
}
- playItem(
- itemName,
- episodeTitle,
- currentVideoTrack,
- currentAudioTrack,
- selectedSubtitleTrack,
- result.Items[0].Container,
- enableSubtitles,
- `${api.basePath}/Videos/${result.Items[0].Id}/stream.${result.Items[0].Container}?Static=true&mediaSourceId=${result.Items[0].Id}&deviceId=${api.deviceInfo.id}&api_key=${api.accessToken}&Tag=${result.Items[0].MediaSources[0].ETag}&videoStreamIndex=${currentVideoTrack}&audioStreamIndex=${currentAudioTrack}`,
- userId,
- result?.Items[0].UserData?.PlaybackPositionTicks,
- result.Items[0].RunTimeTicks,
- result.Items[0],
- queue,
- 0,
- subtitles,
- result?.Items[0].MediaSources[0].Id,
- );
- navigate("/player");
+ // playItem(
+ // itemName,
+ // episodeTitle,
+ // currentVideoTrack,
+ // currentAudioTrack,
+ // selectedSubtitleTrack,
+ // result.Items[0].Container,
+ // enableSubtitles,
+ // `${api.basePath}/Videos/${result.Items[0].Id}/stream.${result.Items[0].Container}?Static=true&mediaSourceId=${result.Items[0].Id}&deviceId=${api.deviceInfo.id}&api_key=${api.accessToken}&Tag=${result.Items[0].MediaSources[0].ETag}&videoStreamIndex=${currentVideoTrack}&audioStreamIndex=${currentAudioTrack}`,
+ // userId,
+ // result?.Items[0].UserData?.PlaybackPositionTicks,
+ // result.Items[0].RunTimeTicks,
+ // result.Items[0],
+ // queue,
+ // 0,
+ // subtitles,
+ // result?.Items[0].MediaSources[0].Id,
+ // );
+ // navigate("/player");
}
},
onSettled: () => {
setPlaybackDataLoading(false);
},
onError: (error) => {
+ console.error(error);
enqueueSnackbar(`${error}`, {
variant: "error",
});
diff --git a/src/components/settings/index.tsx b/src/components/settings/index.tsx
index a32fe7e..bde434e 100644
--- a/src/components/settings/index.tsx
+++ b/src/components/settings/index.tsx
@@ -34,7 +34,7 @@ import { createApi, useApi } from "../../utils/store/api";
import { useCentralStore } from "../../utils/store/central";
import "./settings.module.scss";
-import { RecommendedServerInfo } from "@jellyfin/sdk";
+import type { RecommendedServerInfo } from "@jellyfin/sdk";
import { LoadingButton } from "@mui/lab";
import { red, yellow } from "@mui/material/colors";
import { relaunch } from "@tauri-apps/api/process";
@@ -194,7 +194,7 @@ const Settings = () => {
fullWidth
maxWidth="md"
PaperProps={{
- className: "settings",
+ className: "settings glass",
}}
onClose={() => setSettingsDialogOpen(false)}
>
@@ -205,7 +205,7 @@ const Settings = () => {
setSettingsTabValue(newValue);
}}
style={{
- borderRight: "1.2px solid rgb(255 255 255 / 0.1)",
+ background: "rgb(0 0 0 / 0.6)",
}}
>
{
{updateInfo.isFetching
? "Checking for new updates..."
: updateInfo.data?.shouldUpdate
- ? updateInfo.data.manifest?.version
- : "No update found."}
+ ? updateInfo.data.manifest?.version
+ : "No update found."}