Improved library store & Partly working episode playback

This commit is contained in:
Aleksi Lassila
2023-08-03 22:00:03 +03:00
parent a50ea33f1b
commit 3092e1cc9d
8 changed files with 216 additions and 62 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts">
import { getJellyfinEpisodes } from '$lib/apis/jellyfin/jellyfinApi';
import { getJellyfinEpisodesBySeries } from '$lib/apis/jellyfin/jellyfinApi';
import { getTmdbSeriesSeasons } from '$lib/apis/tmdb/tmdbApi';
import classNames from 'classnames';
import { Check, StarFilled } from 'radix-icons-svelte';
@@ -20,7 +20,9 @@
async function fetchSeriesData() {
const tmdbSeasonsPromise = getTmdbSeriesSeasons(tmdbId, totalSeasons);
const jellyfinEpisodesPromise = jellyfinId ? getJellyfinEpisodes(jellyfinId) : undefined;
const jellyfinEpisodesPromise = jellyfinId
? getJellyfinEpisodesBySeries(jellyfinId)
: undefined;
const tmdbSeasons = await tmdbSeasonsPromise;
const jellyfinEpisodes = await jellyfinEpisodesPromise;