From 22a3ed0cd45554a512cc1f18187c5c630df219b9 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 3 Apr 2013 16:30:56 -0400 Subject: [PATCH] #72 - Subtitle path --- MediaBrowser.Api/Playback/BaseStreamingService.cs | 2 +- MediaBrowser.Api/Playback/Progressive/VideoService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 6ec59c9de..cbb98f0fe 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -286,7 +286,7 @@ namespace MediaBrowser.Api.Playback return string.Empty; } - var param = string.Format(",ass={0}", path); + var param = string.Format(",ass={0}", path.Replace('\\', '/').Replace(":/", "\\:/")); if (startTimeTicks.HasValue) { diff --git a/MediaBrowser.Api/Playback/Progressive/VideoService.cs b/MediaBrowser.Api/Playback/Progressive/VideoService.cs index a6f78c0ed..14ad45419 100644 --- a/MediaBrowser.Api/Playback/Progressive/VideoService.cs +++ b/MediaBrowser.Api/Playback/Progressive/VideoService.cs @@ -35,7 +35,7 @@ namespace MediaBrowser.Api.Playback.Progressive [Route("/Videos/{Id}/stream.avi", "HEAD")] [Route("/Videos/{Id}/stream.m2ts", "HEAD")] [Route("/Videos/{Id}/stream", "HEAD")] - [ServiceStack.ServiceHost.Api(Description = "Gets a video stream")] + [Api(Description = "Gets a video stream")] public class GetVideoStream : VideoStreamRequest {