mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user