commit
6465f1f699
|
@ -55,7 +55,7 @@
|
|||
<HintPath>..\packages\morelinq.1.4.0\lib\net35\MoreLinq.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.4.3.1\lib\net45\NLog.dll</HintPath>
|
||||
<HintPath>..\packages\NLog.4.3.4\lib\net45\NLog.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Patterns.Logging">
|
||||
|
@ -65,8 +65,8 @@
|
|||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\ThirdParty\SharpCompress\SharpCompress.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SimpleInjector, Version=3.1.3.0, Culture=neutral, PublicKeyToken=984cb50dea722e99, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SimpleInjector.3.1.3\lib\net45\SimpleInjector.dll</HintPath>
|
||||
<Reference Include="SimpleInjector, Version=3.1.4.0, Culture=neutral, PublicKeyToken=984cb50dea722e99, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SimpleInjector.3.1.4\lib\net45\SimpleInjector.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<packages>
|
||||
<package id="CommonIO" version="1.0.0.9" targetFramework="net45" />
|
||||
<package id="morelinq" version="1.4.0" targetFramework="net45" />
|
||||
<package id="NLog" version="4.3.1" targetFramework="net45" />
|
||||
<package id="NLog" version="4.3.4" targetFramework="net45" />
|
||||
<package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" />
|
||||
<package id="SimpleInjector" version="3.1.3" targetFramework="net45" />
|
||||
<package id="SimpleInjector" version="3.1.4" targetFramework="net45" />
|
||||
</packages>
|
|
@ -251,7 +251,6 @@ namespace MediaBrowser.Controller.Entities
|
|||
if (query.Recursive)
|
||||
{
|
||||
query.Recursive = true;
|
||||
query.ParentId = parent.Id;
|
||||
query.SetUser(user);
|
||||
|
||||
if (query.IncludeItemTypes.Length == 0)
|
||||
|
@ -259,7 +258,7 @@ namespace MediaBrowser.Controller.Entities
|
|||
query.IncludeItemTypes = new[] { typeof(MusicArtist).Name, typeof(MusicAlbum).Name, typeof(Audio.Audio).Name, typeof(MusicVideo).Name };
|
||||
}
|
||||
|
||||
return _libraryManager.GetItemsResult(query);
|
||||
return parent.QueryRecursive(query);
|
||||
}
|
||||
|
||||
var list = new List<BaseItem>();
|
||||
|
@ -448,7 +447,6 @@ namespace MediaBrowser.Controller.Entities
|
|||
if (query.Recursive)
|
||||
{
|
||||
query.Recursive = true;
|
||||
query.ParentId = parent.Id;
|
||||
query.SetUser(user);
|
||||
|
||||
if (query.IncludeItemTypes.Length == 0)
|
||||
|
@ -456,7 +454,7 @@ namespace MediaBrowser.Controller.Entities
|
|||
query.IncludeItemTypes = new[] { typeof(Movie).Name, typeof(BoxSet).Name };
|
||||
}
|
||||
|
||||
return _libraryManager.GetItemsResult(query);
|
||||
return parent.QueryRecursive(query);
|
||||
}
|
||||
|
||||
var list = new List<BaseItem>();
|
||||
|
@ -613,7 +611,6 @@ namespace MediaBrowser.Controller.Entities
|
|||
if (query.Recursive)
|
||||
{
|
||||
query.Recursive = true;
|
||||
query.ParentId = parent.Id;
|
||||
query.SetUser(user);
|
||||
|
||||
if (query.IncludeItemTypes.Length == 0)
|
||||
|
@ -621,7 +618,7 @@ namespace MediaBrowser.Controller.Entities
|
|||
query.IncludeItemTypes = new[] { typeof(Series).Name, typeof(Season).Name, typeof(Episode).Name };
|
||||
}
|
||||
|
||||
return _libraryManager.GetItemsResult(query);
|
||||
return parent.QueryRecursive(query);
|
||||
}
|
||||
|
||||
var list = new List<BaseItem>();
|
||||
|
|
|
@ -288,6 +288,8 @@ namespace MediaBrowser.Model.Querying
|
|||
[Obsolete]
|
||||
public string Person { get; set; }
|
||||
|
||||
public bool EnableTotalRecordCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ItemQuery" /> class.
|
||||
/// </summary>
|
||||
|
@ -306,6 +308,8 @@ namespace MediaBrowser.Model.Querying
|
|||
|
||||
VideoTypes = new VideoType[] { };
|
||||
|
||||
EnableTotalRecordCount = true;
|
||||
|
||||
Artists = new string[] { };
|
||||
Studios = new string[] { };
|
||||
|
||||
|
|
|
@ -527,6 +527,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|||
private async Task<LiveTvChannel> GetChannel(ChannelInfo channelInfo, string serviceName, Guid parentFolderId, CancellationToken cancellationToken)
|
||||
{
|
||||
var isNew = false;
|
||||
var forceUpdate = false;
|
||||
|
||||
var id = _tvDtoService.GetInternalChannelId(serviceName, channelInfo.Id);
|
||||
|
||||
|
@ -576,10 +577,12 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|||
if (!string.IsNullOrWhiteSpace(channelInfo.ImagePath))
|
||||
{
|
||||
item.SetImagePath(ImageType.Primary, channelInfo.ImagePath);
|
||||
forceUpdate = true;
|
||||
}
|
||||
else if (!string.IsNullOrWhiteSpace(channelInfo.ImageUrl))
|
||||
{
|
||||
item.SetImagePath(ImageType.Primary, channelInfo.ImageUrl);
|
||||
forceUpdate = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -588,9 +591,18 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|||
item.Name = channelInfo.Name;
|
||||
}
|
||||
|
||||
if (isNew)
|
||||
{
|
||||
await _libraryManager.CreateItem(item, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
else if (forceUpdate)
|
||||
{
|
||||
await _libraryManager.UpdateItem(item, ItemUpdateType.MetadataImport, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
await item.RefreshMetadata(new MetadataRefreshOptions(_fileSystem)
|
||||
{
|
||||
ForceSave = isNew
|
||||
ForceSave = isNew || forceUpdate
|
||||
|
||||
}, cancellationToken);
|
||||
|
||||
|
|
|
@ -55,9 +55,9 @@
|
|||
<Reference Include="Interfaces.IO">
|
||||
<HintPath>..\packages\Interfaces.IO.1.0.0.5\lib\portable-net45+sl4+wp71+win8+wpa81\Interfaces.IO.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MediaBrowser.Naming, Version=1.0.5917.1514, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\packages\MediaBrowser.Naming.1.0.0.49\lib\portable-net45+sl4+wp71+win8+wpa81\MediaBrowser.Naming.dll</HintPath>
|
||||
<Reference Include="MediaBrowser.Naming, Version=1.0.5981.21615, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MediaBrowser.Naming.1.0.0.50\lib\portable-net45+sl4+wp71+win8+wpa81\MediaBrowser.Naming.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="MoreLinq">
|
||||
<HintPath>..\packages\morelinq.1.4.0\lib\net35\MoreLinq.dll</HintPath>
|
||||
|
@ -68,8 +68,8 @@
|
|||
<Reference Include="ServiceStack.Api.Swagger">
|
||||
<HintPath>..\ThirdParty\ServiceStack\ServiceStack.Api.Swagger.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SimpleInjector, Version=3.1.3.0, Culture=neutral, PublicKeyToken=984cb50dea722e99, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SimpleInjector.3.1.3\lib\net45\SimpleInjector.dll</HintPath>
|
||||
<Reference Include="SimpleInjector, Version=3.1.4.0, Culture=neutral, PublicKeyToken=984cb50dea722e99, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SimpleInjector.3.1.4\lib\net45\SimpleInjector.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="SocketHttpListener, Version=1.0.5955.1537, Culture=neutral, processorArchitecture=MSIL">
|
||||
|
|
|
@ -2405,17 +2405,20 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||
cmd.Parameters.Add(cmd, "@IsFavorite", DbType.Boolean).Value = query.IsFavorite.Value;
|
||||
}
|
||||
|
||||
if (query.IsPlayed.HasValue)
|
||||
if (EnableJoinUserData(query))
|
||||
{
|
||||
if (query.IsPlayed.Value)
|
||||
if (query.IsPlayed.HasValue)
|
||||
{
|
||||
whereClauses.Add("(played=@IsPlayed)");
|
||||
if (query.IsPlayed.Value)
|
||||
{
|
||||
whereClauses.Add("(played=@IsPlayed)");
|
||||
}
|
||||
else
|
||||
{
|
||||
whereClauses.Add("(played is null or played=@IsPlayed)");
|
||||
}
|
||||
cmd.Parameters.Add(cmd, "@IsPlayed", DbType.Boolean).Value = query.IsPlayed.Value;
|
||||
}
|
||||
else
|
||||
{
|
||||
whereClauses.Add("(played is null or played=@IsPlayed)");
|
||||
}
|
||||
cmd.Parameters.Add(cmd, "@IsPlayed", DbType.Boolean).Value = query.IsPlayed.Value;
|
||||
}
|
||||
|
||||
if (query.IsResumable.HasValue)
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<package id="Emby.XmlTv" version="1.0.0.48" targetFramework="net45" />
|
||||
<package id="ini-parser" version="2.2.4" targetFramework="net45" />
|
||||
<package id="Interfaces.IO" version="1.0.0.5" targetFramework="net45" />
|
||||
<package id="MediaBrowser.Naming" version="1.0.0.49" targetFramework="net45" />
|
||||
<package id="MediaBrowser.Naming" version="1.0.0.50" targetFramework="net45" />
|
||||
<package id="Mono.Nat" version="1.2.24.0" targetFramework="net45" />
|
||||
<package id="morelinq" version="1.4.0" targetFramework="net45" />
|
||||
<package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" />
|
||||
<package id="SimpleInjector" version="3.1.3" targetFramework="net45" />
|
||||
<package id="SimpleInjector" version="3.1.4" targetFramework="net45" />
|
||||
<package id="SocketHttpListener" version="1.0.0.30" targetFramework="net45" />
|
||||
</packages>
|
|
@ -13,8 +13,8 @@
|
|||
<copyright>Copyright © Emby 2013</copyright>
|
||||
<dependencies>
|
||||
<dependency id="MediaBrowser.Common" version="3.0.647" />
|
||||
<dependency id="NLog" version="4.3.1" />
|
||||
<dependency id="SimpleInjector" version="3.1.3" />
|
||||
<dependency id="NLog" version="4.3.4" />
|
||||
<dependency id="SimpleInjector" version="3.1.4" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
|
|
Loading…
Reference in New Issue
Block a user