mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
fix: refactor
This commit is contained in:
@@ -46,7 +46,6 @@ export const useJobProcessor = () => {
|
||||
const [isProcessing, setProcessing] = useAtom(isProcessingAtom);
|
||||
|
||||
useEffect(() => {
|
||||
console.info("Queue changed", queue, isProcessing);
|
||||
if (queue.length > 0 && !isProcessing) {
|
||||
console.info("Processing queue", queue);
|
||||
queueActions.processJob(queue, setQueue, setProcessing);
|
||||
|
||||
@@ -9,6 +9,7 @@ type Settings = {
|
||||
usePopularPlugin?: boolean;
|
||||
deviceProfile?: "Expo" | "Native" | "Old";
|
||||
forceDirectPlay?: boolean;
|
||||
mediaListCollectionIds?: string[];
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -31,6 +32,7 @@ const loadSettings = async (): Promise<Settings> => {
|
||||
usePopularPlugin: false,
|
||||
deviceProfile: "Expo",
|
||||
forceDirectPlay: false,
|
||||
mediaListCollectionIds: [],
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -11,9 +11,11 @@ import { BaseItemDto } from "@jellyfin/sdk/lib/generated-client/models";
|
||||
export const getLogoImageUrlById = ({
|
||||
api,
|
||||
item,
|
||||
height = 130,
|
||||
}: {
|
||||
api?: Api | null;
|
||||
item?: BaseItemDto | null;
|
||||
height?: number;
|
||||
}) => {
|
||||
if (!api || !item) {
|
||||
return null;
|
||||
@@ -27,7 +29,7 @@ export const getLogoImageUrlById = ({
|
||||
|
||||
params.append("tag", imageTags);
|
||||
params.append("quality", "90");
|
||||
params.append("fillHeight", "130");
|
||||
params.append("fillHeight", height.toString());
|
||||
|
||||
return `${api.basePath}/Items/${item.Id}/Images/Logo?${params.toString()}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user