The Free Software Media System - Server Backend & API
Self-documenting code
Bond_0099aaeb1941861
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.csindex cde6f725aa..efbb17fd2a 100644--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs@@ -622,18 +622,19 @@ namespace MediaBrowser.Api.Playbackreturn null;}- if (!value.StartsWith("npt=", StringComparison.OrdinalIgnoreCase))+ const string Npt = "npt=";+ if (!value.StartsWith(Npt, StringComparison.OrdinalIgnoreCase)){throw new ArgumentException("Invalid timeseek header");}int index = value.IndexOf('-');if (index == -1){- value = value.Substring(4);+ value = value.Substring(Npt.Length);}else{- value = value.Substring(4, index);+ value = value.Substring(Npt.Length, index);}if (value.IndexOf(':') == -1)