mirror of
https://github.com/jellyfin/TMDbLib.git
synced 2024-11-30 09:10:37 +00:00
- Fixed issue #10
- Changed the model slightly, but should be backwards compatible
This commit is contained in:
parent
4c0bb00060
commit
1867fc6f93
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace TMDbLib.Objects.Search
|
||||
{
|
||||
@ -8,11 +9,22 @@ namespace TMDbLib.Objects.Search
|
||||
public bool Adult { get; set; }
|
||||
public string BackdropPath { get; set; }
|
||||
public string OriginalTitle { get; set; }
|
||||
public DateTime ReleaseDate { get; set; }
|
||||
public string Release_Date { get; set; }
|
||||
public string PosterPath { get; set; }
|
||||
public double Popularity { get; set; }
|
||||
public string Title { get; set; }
|
||||
public double VoteAverage { get; set; }
|
||||
public int VoteCount { get; set; }
|
||||
|
||||
public DateTime ReleaseDate
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime dt;
|
||||
DateTime.TryParseExact(Release_Date, "yyyy-MM-dd", CultureInfo.CurrentCulture, DateTimeStyles.None, out dt);
|
||||
|
||||
return dt;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user