feat: add scrapemedia to downloaditem

This commit is contained in:
Adrian Castro
2024-03-27 10:40:16 +01:00
parent 4cfe7b6bfd
commit 42e6b1fe63
5 changed files with 50 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ export const useMeta = () => {
const meta = usePlayerStore((state) => state.meta);
const setMeta = usePlayerStore((state) => state.setMeta);
const convertMovieIdToMeta = useCallback(
const convertIdToMeta = useCallback(
async (id: string, type: "movie" | "tv") => {
const media = await fetchMediaDetails(id, type);
if (!media) return;
@@ -54,5 +54,5 @@ export const useMeta = () => {
[meta?.episode?.number, meta?.season?.number, setMeta],
);
return { convertMovieIdToMeta };
return { convertIdToMeta };
};