From 1523955eccea1f5446a765e37021db523d11dc41 Mon Sep 17 00:00:00 2001 From: VergilGao <8655163+VergilGao@users.noreply.github.com> Date: Tue, 16 Dec 2025 10:39:34 +0800 Subject: [PATCH] fix: strm file with local file path fails to play --- jellyfin_kodi/helper/playutils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jellyfin_kodi/helper/playutils.py b/jellyfin_kodi/helper/playutils.py index 83a0e0e4..a02142f9 100644 --- a/jellyfin_kodi/helper/playutils.py +++ b/jellyfin_kodi/helper/playutils.py @@ -194,17 +194,17 @@ class PlayUtils(object): if ( source.get("Protocol") == "Http" or source["SupportsDirectPlay"] - and ( - self.is_strm(source) - or not settings("playFromStream.bool") - and self.is_file_exists(source) - ) + and (not settings("playFromStream.bool") and self.is_file_exists(source)) ): LOG.info("--[ direct play ]") self.direct_play(source) - elif source["SupportsDirectStream"] or source["SupportsDirectPlay"]: + elif ( + self.is_strm(source) + or source["SupportsDirectStream"] + or source["SupportsDirectPlay"] + ): LOG.info("--[ direct stream ]") self.direct_url(source)