Skip to content

Commit

Permalink
3.2.36.15
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Nov 20, 2017
1 parent 9ca8238 commit 39418b4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public AudioResolver(ILibraryManager libraryManager)
/// <value>The priority.</value>
public override ResolverPriority Priority
{
get { return ResolverPriority.Last; }
get { return ResolverPriority.Fourth; }
}

public MultiItemResolverResult ResolveMultiple(Folder parent,
Expand Down Expand Up @@ -220,13 +220,19 @@ private MultiItemResolverResult ResolveMultipleAudio<T>(Folder parent, IEnumerab

foreach (var resolvedItem in resolverResult)
{
if (resolvedItem.Files.Count > 1)
{
// For now, until we sort out naming for multi-part books
continue;
}

var firstMedia = resolvedItem.Files.First();

var libraryItem = new T
{
Path = firstMedia.Path,
IsInMixedFolder = isInMixedFolder,
//ProductionYear = resolvedItem.Year,
ProductionYear = resolvedItem.Year,
Name = parseName ?
resolvedItem.Name :
Path.GetFileNameWithoutExtension(firstMedia.Path),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public override async Task Open(CancellationToken openCancellationToken)
var contentType = response.ContentType ?? string.Empty;
if (contentType.IndexOf("matroska", StringComparison.OrdinalIgnoreCase) != -1)
{
extension = "mkv";
requiresRemux = true;
}
else if (contentType.IndexOf("mp4", StringComparison.OrdinalIgnoreCase) != -1 ||
contentType.IndexOf("dash", StringComparison.OrdinalIgnoreCase) != -1 ||
Expand Down Expand Up @@ -97,6 +97,14 @@ public override async Task Open(CancellationToken openCancellationToken)
OpenedMediaSource.Path = _appHost.GetLocalApiUrl("127.0.0.1") + "/LiveTv/LiveStreamFiles/" + UniqueId + "/stream.ts";
OpenedMediaSource.Protocol = MediaProtocol.Http;

if (OpenedMediaSource.SupportsProbing)
{
await Task.Delay(3000).ConfigureAwait(false);
}

//OpenedMediaSource.Path = TempFilePath;
//OpenedMediaSource.Protocol = MediaProtocol.File;

//OpenedMediaSource.Path = _tempFilePath;
//OpenedMediaSource.Protocol = MediaProtocol.File;
//OpenedMediaSource.SupportsDirectPlay = false;
Expand Down
2 changes: 1 addition & 1 deletion SharedVersion.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
using System.Reflection;

[assembly: AssemblyVersion("3.2.36.14")]
[assembly: AssemblyVersion("3.2.36.15")]

0 comments on commit 39418b4

Please sign in to comment.