From c88df5f5f842500ca8475c12747be392cacc21ad Mon Sep 17 00:00:00 2001 From: 5rahim Date: Sat, 6 Jul 2024 20:24:34 -0400 Subject: [PATCH] changelog --- CHANGELOG.md | 9 +++++++++ .../app/(main)/mediastream/_lib/handle-mediastream.ts | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef616261..ecb9b5fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to this project will be documented in this file. +## v1.7.2 + +- Reminder to place the executable in a dedicated folder before updating +- ⚡️ Scanner: Support more file extensions +- ⚡️ Removed third-party app startup check if the application path is not set +- 🦺 Auto update: Fixed update deleting unrelated files in the same directory +- 🦺 Media streaming: Fixed direct play using wrong content type +- 🦺 Torrent streaming: Fixed inaccurate file download percentage for batches + ## v1.7.1 - 🦺 Media streaming: Fixed direct play returning the same file for different episodes diff --git a/seanime-web/src/app/(main)/mediastream/_lib/handle-mediastream.ts b/seanime-web/src/app/(main)/mediastream/_lib/handle-mediastream.ts index 5c7efef8..51dc593c 100644 --- a/seanime-web/src/app/(main)/mediastream/_lib/handle-mediastream.ts +++ b/seanime-web/src/app/(main)/mediastream/_lib/handle-mediastream.ts @@ -451,7 +451,7 @@ export function useHandleMediastream(props: HandleMediastreamProps) { const onPlayFile = (filepath: string) => { logger("MEDIASTREAM").info("Playing file", filepath) - playerRef.current?.destroy() + playerRef.current?.destroy?.() previousCurrentTimeRef.current = 0 setFilePath(filepath) } @@ -536,7 +536,7 @@ export function useHandleMediastream(props: HandleMediastreamProps) { setStreamType: (type: Mediastream_StreamType) => { logger("MEDIASTREAM").info("[setStreamType] Setting stream type", type) setStreamType(type) - playerRef.current?.destroy() + playerRef.current?.destroy?.() changeUrl(undefined) }, onTimeUpdate,