浏览代码

#72 - Subtitle path

Luke Pulverenti 12 年之前
父节点
当前提交
22a3ed0cd4

+ 1 - 1
MediaBrowser.Api/Playback/BaseStreamingService.cs

@@ -286,7 +286,7 @@ namespace MediaBrowser.Api.Playback
                 return string.Empty;
                 return string.Empty;
             }
             }
 
 
-            var param = string.Format(",ass={0}", path);
+            var param = string.Format(",ass={0}", path.Replace('\\', '/').Replace(":/", "\\:/"));
 
 
             if (startTimeTicks.HasValue)
             if (startTimeTicks.HasValue)
             {
             {

+ 1 - 1
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.avi", "HEAD")]
     [Route("/Videos/{Id}/stream.m2ts", "HEAD")]
     [Route("/Videos/{Id}/stream.m2ts", "HEAD")]
     [Route("/Videos/{Id}/stream", "HEAD")]
     [Route("/Videos/{Id}/stream", "HEAD")]
-    [ServiceStack.ServiceHost.Api(Description = "Gets a video stream")]
+    [Api(Description = "Gets a video stream")]
     public class GetVideoStream : VideoStreamRequest
     public class GetVideoStream : VideoStreamRequest
     {
     {