Skip to content

Commit

Permalink
fix subtitle downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Jun 24, 2014
1 parent baffb54 commit 5fbf7b5
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
<RunPostBuildEvent>Always</RunPostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="MediaBrowser.Common, Version=3.0.5287.19941, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Common, Version=3.0.5287.41950, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Common.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Common.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Model, Version=3.0.5287.19940, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Model, Version=3.0.5287.41949, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Model.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Model.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Expression.Effects, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
2 changes: 1 addition & 1 deletion MediaBrowser.Plugins.DefaultTheme/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MediaBrowser.Common" version="3.0.410" targetFramework="net45" />
<package id="MediaBrowser.Common" version="3.0.411" targetFramework="net45" />
<package id="ServiceStack.Text" version="3.9.70" targetFramework="net45" />
</packages>
8 changes: 4 additions & 4 deletions MediaBrowser.Theater.Core/MediaBrowser.Theater.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="MediaBrowser.Common, Version=3.0.5287.19941, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Common, Version=3.0.5287.41950, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Common.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Common.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Model, Version=3.0.5287.19940, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Model, Version=3.0.5287.41949, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Model.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Model.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Expression.Effects, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
2 changes: 1 addition & 1 deletion MediaBrowser.Theater.Core/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MediaBrowser.Common" version="3.0.410" targetFramework="net45" />
<package id="MediaBrowser.Common" version="3.0.411" targetFramework="net45" />
</packages>
9 changes: 7 additions & 2 deletions MediaBrowser.Theater.DirectShow/DirectShowPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2676,7 +2676,6 @@ public async void SetSubtitleStream(SelectableMediaStream stream)

ToggleHideSubtitles(stream.Name.ToLower().Contains("no subtitles"));
}


[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)]
[return: MarshalAsAttribute(UnmanagedType.Bool)]
Expand All @@ -2688,7 +2687,13 @@ private async void LoadExternalSubtitleFromStream(SelectableMediaStream stream)
var url = _apiClient.GetSubtitleUrl(new SubtitleDownloadOptions
{
ItemId = _item.OriginalItem.Id,
StreamIndex = stream.Index
StreamIndex = stream.Index,

// MBT hasn't implemented MediaSources yet. Will be handled by migration to StreamBuilder library.
// For now, this knowledge of the ID isn't great, but should work
MediaSourceId = _item.OriginalItem.Id,

Format = "srt"
});

// as xvfilter throw's an error for a stream, we copy the stream to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>Assemblies\DirectShowLib-2005.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Common, Version=3.0.5287.19941, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Common, Version=3.0.5287.41950, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Common.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Common.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Model, Version=3.0.5287.19940, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Model, Version=3.0.5287.41949, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Model.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Model.dll</HintPath>
</Reference>
<Reference Include="PresentationUI, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="ReachFramework" />
Expand Down
2 changes: 1 addition & 1 deletion MediaBrowser.Theater.DirectShow/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MediaBrowser.Common" version="3.0.410" targetFramework="net45" />
<package id="MediaBrowser.Common" version="3.0.411" targetFramework="net45" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,25 @@
<Reference Include="CoreAudioApi">
<HintPath>..\ThirdParty\CoreAudioApi\CoreAudioApi.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Common, Version=3.0.5287.19941, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Common, Version=3.0.5287.41950, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Common.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Common.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Common.Implementations, Version=3.0.5287.19941, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Common.Implementations, Version=3.0.5287.41950, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.Internal.3.0.410\lib\net45\MediaBrowser.Common.Implementations.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.Internal.3.0.411\lib\net45\MediaBrowser.Common.Implementations.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Model, Version=3.0.5287.19940, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Model, Version=3.0.5287.41949, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Model.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Model.dll</HintPath>
</Reference>
<Reference Include="NLog, Version=3.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\NLog.3.0.0.0\lib\net45\NLog.dll</HintPath>
</Reference>
<Reference Include="ServiceStack.Text, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.Internal.3.0.410\lib\net45\ServiceStack.Text.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.Internal.3.0.411\lib\net45\ServiceStack.Text.dll</HintPath>
</Reference>
<Reference Include="SharpCompress, Version=0.10.2.0, Culture=neutral, PublicKeyToken=beaf6f427e128133, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
4 changes: 2 additions & 2 deletions MediaBrowser.Theater.Implementations/packages.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MediaBrowser.Common" version="3.0.410" targetFramework="net45" />
<package id="MediaBrowser.Common.Internal" version="3.0.410" targetFramework="net45" />
<package id="MediaBrowser.Common" version="3.0.411" targetFramework="net45" />
<package id="MediaBrowser.Common.Internal" version="3.0.411" targetFramework="net45" />
<package id="NLog" version="3.0.0.0" targetFramework="net45" />
<package id="sharpcompress" version="0.10.2" targetFramework="net45" />
<package id="SimpleInjector" version="2.5.0" targetFramework="net45" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="MediaBrowser.Common, Version=3.0.5287.19941, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Common, Version=3.0.5287.41950, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Common.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Common.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Model, Version=3.0.5287.19940, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Model, Version=3.0.5287.41949, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Model.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Model.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
Expand Down
2 changes: 1 addition & 1 deletion MediaBrowser.Theater.Interfaces/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MediaBrowser.Common" version="3.0.410" targetFramework="net45" />
<package id="MediaBrowser.Common" version="3.0.411" targetFramework="net45" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="MediaBrowser.Common, Version=3.0.5287.19941, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Common, Version=3.0.5287.41950, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Common.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Common.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Model, Version=3.0.5287.19940, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Model, Version=3.0.5287.41949, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Model.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Model.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Expression.Effects, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
2 changes: 1 addition & 1 deletion MediaBrowser.Theater.Presentation/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MediaBrowser.Common" version="3.0.410" targetFramework="net45" />
<package id="MediaBrowser.Common" version="3.0.411" targetFramework="net45" />
</packages>
18 changes: 9 additions & 9 deletions MediaBrowser.UI/MediaBrowser.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -101,24 +101,24 @@
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="MediaBrowser.ApiInteraction, Version=3.0.5287.20119, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.ApiInteraction, Version=3.0.5287.42166, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.ApiClient.3.0.0.314\lib\net45\MediaBrowser.ApiInteraction.dll</HintPath>
<HintPath>..\packages\MediaBrowser.ApiClient.3.0.0.315\lib\net45\MediaBrowser.ApiInteraction.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Common, Version=3.0.5287.19941, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Common, Version=3.0.5287.41950, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Common.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Common.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Common.Implementations, Version=3.0.5287.19941, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Common.Implementations, Version=3.0.5287.41950, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.Internal.3.0.410\lib\net45\MediaBrowser.Common.Implementations.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.Internal.3.0.411\lib\net45\MediaBrowser.Common.Implementations.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.IsoMounter">
<HintPath>..\packages\MediaBrowser.IsoMounting.3.0.65\lib\net45\MediaBrowser.IsoMounter.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Model, Version=3.0.5287.19940, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="MediaBrowser.Model, Version=3.0.5287.41949, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.3.0.410\lib\net45\MediaBrowser.Model.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.3.0.411\lib\net45\MediaBrowser.Model.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Expression.Effects, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand All @@ -144,7 +144,7 @@
</Reference>
<Reference Include="ServiceStack.Text, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\MediaBrowser.Common.Internal.3.0.410\lib\net45\ServiceStack.Text.dll</HintPath>
<HintPath>..\packages\MediaBrowser.Common.Internal.3.0.411\lib\net45\ServiceStack.Text.dll</HintPath>
</Reference>
<Reference Include="SharpCompress, Version=0.10.2.0, Culture=neutral, PublicKeyToken=beaf6f427e128133, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
6 changes: 3 additions & 3 deletions MediaBrowser.UI/packages.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MediaBrowser.ApiClient" version="3.0.0.314" targetFramework="net45" />
<package id="MediaBrowser.Common" version="3.0.410" targetFramework="net45" />
<package id="MediaBrowser.Common.Internal" version="3.0.410" targetFramework="net45" />
<package id="MediaBrowser.ApiClient" version="3.0.0.315" targetFramework="net45" />
<package id="MediaBrowser.Common" version="3.0.411" targetFramework="net45" />
<package id="MediaBrowser.Common.Internal" version="3.0.411" targetFramework="net45" />
<package id="MediaBrowser.IsoMounting" version="3.0.65" targetFramework="net45" />
<package id="morelinq" version="1.0.16006" targetFramework="net45" />
<package id="Newtonsoft.Json" version="5.0.8" targetFramework="net45" />
Expand Down

0 comments on commit 5fbf7b5

Please sign in to comment.