aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlostb1t <coding-mosses0z@icloud.com>2025-11-29 10:11:18 +0100
committerlostb1t <coding-mosses0z@icloud.com>2025-12-21 14:34:27 +0100
commit2168847a45721c567c69767be28c4ce51fe5523a (patch)
treea3b2ce67f1579a82172d02e20f5a1936f49dbf14
parente5a2acd6dd901d4d9c57e80051c1b096efcf0f94 (diff)
wip
-rw-r--r--MediaBrowser.Model/Dlna/StreamInfo.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Dlna/StreamInfo.cs b/MediaBrowser.Model/Dlna/StreamInfo.cs
index 92404de508..9cbdf03e17 100644
--- a/MediaBrowser.Model/Dlna/StreamInfo.cs
+++ b/MediaBrowser.Model/Dlna/StreamInfo.cs
@@ -1260,11 +1260,10 @@ public class StreamInfo
stream.Index.ToString(CultureInfo.InvariantCulture),
startPositionTicks.ToString(CultureInfo.InvariantCulture),
subtitleProfile.Format);
- info.IsExternalUrl = false; // Default to API URL
+ info.IsExternalUrl = false;
// Check conditions for potentially using the direct path
if (stream.IsExternal // Must be external
- && MediaSource?.Protocol != MediaProtocol.File // Main media must not be a local file
&& string.Equals(stream.Codec, subtitleProfile.Format, StringComparison.OrdinalIgnoreCase) // Format must match (no conversion needed)
&& !string.IsNullOrEmpty(stream.Path) // Path must exist
&& Uri.TryCreate(stream.Path, UriKind.Absolute, out Uri? uriResult) // Path must be an absolute URI