Addede VfType to DtoBaseItem

pull/702/head
LukePulverenti Luke Pulverenti luke pulverenti 12 years ago
parent cc25bd579b
commit 0ff432ea4e

@ -107,6 +107,13 @@ namespace MediaBrowser.Api
dto.Type = item.GetType().Name; dto.Type = item.GetType().Name;
dto.UserRating = item.UserRating; dto.UserRating = item.UserRating;
VirtualFolder virtualFolder = item.VirtualFolder;
if (virtualFolder != null)
{
dto.VfType = virtualFolder.CollectionType;
}
dto.UserData = item.GetUserData(user); dto.UserData = item.GetUserData(user);
Folder folder = item as Folder; Folder folder = item as Folder;

@ -243,12 +243,14 @@ namespace MediaBrowser.Controller
{ {
var provider = MetadataProviders[i]; var provider = MetadataProviders[i];
if (!provider.Supports(item)) // Skip if internet providers are currently disabled
if (provider.RequiresInternet && (!Configuration.EnableInternetProviders || !allowInternetProviders))
{ {
continue; continue;
} }
if (provider.RequiresInternet && (!Configuration.EnableInternetProviders || !allowInternetProviders)) // Skip if the provider doesn't support the current item
if (!provider.Supports(item))
{ {
continue; continue;
} }

@ -83,6 +83,11 @@ namespace MediaBrowser.Model.DTO
public IEnumerable<DTOBaseItem> LocalTrailers { get; set; } public IEnumerable<DTOBaseItem> LocalTrailers { get; set; }
public int LocalTrailerCount { get; set; } public int LocalTrailerCount { get; set; }
/// <summary>
/// Holds the virtual folder collection type
/// </summary>
public string VfType { get; set; }
/// <summary> /// <summary>
/// User data for this item based on the user it's being requested for /// User data for this item based on the user it's being requested for
/// </summary> /// </summary>

@ -27,7 +27,7 @@ namespace MediaBrowser.Model.DTO
} }
/// <summary> /// <summary>
/// This is used by BaseItemContainer /// This is used by the api to get information about a Person within a BaseItem
/// </summary> /// </summary>
public class BaseItemPerson public class BaseItemPerson
{ {
@ -38,7 +38,7 @@ namespace MediaBrowser.Model.DTO
} }
/// <summary> /// <summary>
/// This is used by BaseItemContainer /// This is used by the api to get information about a studio within a BaseItem
/// </summary> /// </summary>
public class BaseItemStudio public class BaseItemStudio
{ {

Loading…
Cancel
Save