update recording conversion

This commit is contained in:
Luke Pulverenti 2017-02-22 15:58:02 -05:00
parent 76b456d5e8
commit 6847cac829
2 changed files with 23 additions and 9 deletions

View File

@ -187,7 +187,10 @@ namespace Emby.Server.Core.EntryPoints
private void ClearCreatedRules(object state)
{
_createdRules = new List<string>();
lock (_createdRules)
{
_createdRules.Clear();
}
lock (_usnsHandled)
{
_usnsHandled.Clear();
@ -236,9 +239,17 @@ namespace Emby.Server.Core.EntryPoints
var address = device.LocalAddress.ToString();
lock (_createdRules)
{
if (!_createdRules.Contains(address))
{
_createdRules.Add(address);
}
else
{
return;
}
}
var success = await CreatePortMap(device, _appHost.HttpPort, _config.Configuration.PublicPort).ConfigureAwait(false);
@ -247,7 +258,6 @@ namespace Emby.Server.Core.EntryPoints
await CreatePortMap(device, _appHost.HttpsPort, _config.Configuration.PublicHttpsPort).ConfigureAwait(false);
}
}
}
private async Task<bool> CreatePortMap(INatDevice device, int privatePort, int publicPort)
{

View File

@ -67,7 +67,11 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
private bool CopySubtitles
{
get { return string.Equals(OutputFormat, "mkv", StringComparison.OrdinalIgnoreCase); }
get
{
return false;
//return string.Equals(OutputFormat, "mkv", StringComparison.OrdinalIgnoreCase);
}
}
public string GetOutputPath(MediaSourceInfo mediaSource, string targetFile)