mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-19 08:36:37 +00:00
fixes #299 - Add trailer urls to MovieDbProvider
This commit is contained in:
@@ -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>
|
||||
|
||||
11
MediaBrowser.Model/Entities/MediaUrl.cs
Normal file
11
MediaBrowser.Model/Entities/MediaUrl.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -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" />
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user