Many UI and API Improvements (#8)

This fixes and implements many items on the ArtistIndex Page and ArtistDetailPage

* Create ArtistStatistics Core Module and tie into API.
* Create Members Class and tie into ArtistModel and Artist API resource.
* Finish Out Album API resources and pass to ArtistDetailPage.
* Finish Out Track and TrackFile API resources and pass to ArtistDetailPage.
* Lots of UI work on Artist Detail Page to get Albums and Track list working.
* Add Cover and Disc Image Types to MediaCover Class
* Remove AddSeries UI Flow, since we have replaced with AddArtist (Cleanup)
This commit is contained in:
Qstick
2017-06-25 09:17:49 -04:00
committed by Joseph Milazzo
parent 2c7398ac66
commit d8ea0a3243
86 changed files with 1293 additions and 1663 deletions
@@ -365,7 +365,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
series.TitleSlug = show.Slug;
series.Status = MapSeriesStatus(show.Status);
series.Ratings = MapRatings(show.Rating);
//series.Ratings = MapRatings(show.Rating);
series.Genres = show.Genres;
if (show.ContentRating.IsNotNullOrWhiteSpace())
@@ -412,7 +412,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
episode.AirDate = oracleEpisode.AirDate;
episode.AirDateUtc = oracleEpisode.AirDateUtc;
episode.Ratings = MapRatings(oracleEpisode.Rating);
//episode.Ratings = MapRatings(oracleEpisode.Rating);
//Don't include series fanart images as episode screenshot
if (oracleEpisode.Image != null)
@@ -443,14 +443,14 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
return SeriesStatusType.Continuing;
}
private static Ratings MapRatings(RatingResource rating)
private static Core.Music.Ratings MapRatings(RatingResource rating)
{
if (rating == null)
{
return new Ratings();
return new Core.Music.Ratings();
}
return new Ratings
return new Core.Music.Ratings
{
Votes = rating.Count,
Value = rating.Value