fix: play button not working when nothing is loaded

This commit is contained in:
ThaUnknown 2025-06-29 17:21:11 +02:00
parent df514c0fbe
commit d032ae36d1
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "6.4.14",
"version": "6.4.15",
"license": "BUSL-1.1",
"private": true,
"packageManager": "pnpm@9.14.4",

View file

@ -1,6 +1,9 @@
<script lang='ts' context='module'>
import { writable } from 'svelte/store'
export const playEp = writable((media: Media, episode: number) => {})
import { searchStore } from '$lib'
export const playEp = writable((media: Media, episode: number) => searchStore.set({ media, episode }))
</script>
<script lang='ts'>
@ -11,7 +14,6 @@
import type { MediaInfo } from '$lib/components/ui/player/util'
import type { resolveFilesPoorly, ResolvedFile } from './resolver'
import { searchStore } from '$lib'
import { fillerEpisodes } from '$lib/components/EpisodesList.svelte'
import { cover, episodes, title, type Media } from '$lib/modules/anilist'
import { settings } from '$lib/modules/settings'