fixes #299 - Add trailer urls to MovieDbProvider

This commit is contained in:
Luke Pulverenti
2013-06-27 12:36:41 -04:00
parent c70f1047f7
commit 5782d9084d
9 changed files with 62 additions and 25 deletions

View File

@@ -160,7 +160,7 @@ namespace MediaBrowser.Model.Dto
/// Gets or sets the trailer urls.
/// </summary>
/// <value>The trailer urls.</value>
public List<string> TrailerUrls { get; set; }
public List<MediaUrl> RemoteTrailers { get; set; }
/// <summary>
/// Gets or sets the provider ids.
@@ -614,16 +614,6 @@ namespace MediaBrowser.Model.Dto
get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Menu); }
}
/// <summary>
/// Gets a value indicating whether this instance is video.
/// </summary>
/// <value><c>true</c> if this instance is video; otherwise, <c>false</c>.</value>
[IgnoreDataMember]
public bool HasTrailer
{
get { return LocalTrailerCount > 0 || (TrailerUrls != null && TrailerUrls.Count > 0); }
}
/// <summary>
/// Gets a value indicating whether this instance is video.
/// </summary>

View File

@@ -0,0 +1,11 @@

namespace MediaBrowser.Model.Entities
{
public class MediaUrl
{
public string Url { get; set; }
public string Name { get; set; }
public bool? IsHD { get; set; }
public bool IsDirectLink { get; set; }
}
}

View File

@@ -52,6 +52,7 @@
<Compile Include="Dto\ItemCounts.cs" />
<Compile Include="Dto\StudioDto.cs" />
<Compile Include="Entities\ItemReview.cs" />
<Compile Include="Entities\MediaUrl.cs" />
<Compile Include="Entities\MetadataFields.cs" />
<Compile Include="Entities\Video3DFormat.cs" />
<Compile Include="Net\WebSocketMessage.cs" />

View File

@@ -154,7 +154,7 @@ namespace MediaBrowser.Model.Querying
/// <summary>
/// The trailer url of the item
/// </summary>
TrailerUrls,
RemoteTrailers,
/// <summary>
/// The user data of the item