fixed some db issues and added a preview

This commit is contained in:
Jamie Rees 2016-03-01 23:21:38 +00:00
parent f1b33cf794
commit 7404fd449a
6 changed files with 14 additions and 12 deletions

View file

@ -64,7 +64,9 @@ namespace RequestPlex.Core
PosterPath = "http://image.tmdb.org/t/p/w150/" + movieInfo.PosterPath,
Title = movieInfo.Title,
ReleaseDate = movieInfo.ReleaseDate ?? DateTime.MinValue,
Status = movieInfo.Status
Status = movieInfo.Status,
RequestedDate = DateTime.Now,
Approved = false
};
}
else
@ -79,7 +81,9 @@ namespace RequestPlex.Core
PosterPath = "http://image.tmdb.org/t/p/w150/" + showInfo.PosterPath,
Title = showInfo.Name,
ReleaseDate = showInfo.FirstAirDate ?? DateTime.MinValue,
Status = showInfo.Status
Status = showInfo.Status,
RequestedDate = DateTime.Now,
Approved = false
};
}
var db = new DbConfiguration(new SqliteFactory());