From 58a256c121559e38762da603db2616f433441193 Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 1 Oct 2021 17:49:19 -0400 Subject: [PATCH 1/2] Fix direct play logic for 10.8 --- resources/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 6ea0a9d..0380803 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -93,7 +93,7 @@ class PlayUtils: playback_type = "0" # check if file can be direct streamed - if can_direct_stream and playurl is None: + if (can_direct_stream or can_direct_play) and playurl is None: item_id = media_source.get('Id') playurl = ("%s/Videos/%s/stream" + "?static=true" + From 42187327d6b2115c91f4d99d7b292f54daa1f9e9 Mon Sep 17 00:00:00 2001 From: mcarlton00 Date: Sat, 2 Oct 2021 09:53:12 -0400 Subject: [PATCH 2/2] Update resources/lib/utils.py Co-authored-by: Claus Vium --- resources/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 0380803..4df8627 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -92,7 +92,7 @@ class PlayUtils: playurl = direct_path playback_type = "0" - # check if file can be direct streamed + # check if file can be direct streamed/played if (can_direct_stream or can_direct_play) and playurl is None: item_id = media_source.get('Id') playurl = ("%s/Videos/%s/stream" +