New: Update DB to store all releases for an album (#517)

* New: Store all releases for an album and track artists

* Add Overview, links and release date by release

* Tidy up

* Fix metadata refresh errors following musicbrainz edits
This commit is contained in:
ta264
2018-12-15 00:02:43 +00:00
committed by Qstick
parent 24bdb5a891
commit c392569a63
136 changed files with 2305 additions and 1120 deletions
@@ -7,31 +7,18 @@ namespace NzbDrone.Core.MetadataSource.SkyHook.Resource
{
public class AlbumResource
{
public AlbumResource()
{
Media = new List<MediumResource>();
Releases = new List<ReleaseResource>();
}
public List<ArtistResource> Artists { get; set; } // Will always be length of 1 unless a compilation
public string Url { get; set; } // Link to the endpoint api to give full info for this object
public string Id { get; set; } // This is a unique Album ID. Needed for all future API calls
public DateTime ReleaseDate { get; set; }
public List<ImageResource> Images { get; set; }
public string Title { get; set; }
public string ArtistId { get; set; }
public List<ArtistResource> Artists { get; set; }
public string Disambiguation { get; set; }
public string Overview { get; set; }
public List<string> Genres { get; set; }
public List<string> Labels { get; set; }
public string Type { get; set; }
public List<string> SecondaryTypes { get; set; }
public List<MediumResource> Media { get; set; }
public List<TrackResource> Tracks { get; set; }
public List<ReleaseResource> Releases { get; set; }
public string Id { get; set; }
public List<ImageResource> Images { get; set; }
public List<LinkResource> Links { get; set; }
public RatingResource Rating { get; set; }
public string SelectedRelease { get; set; }
public AlbumArtistResource Artist { get; set; }
public DateTime ReleaseDate { get; set; }
public List<ReleaseResource> Releases { get; set; }
public List<string> SecondaryTypes { get; set; }
public string Title { get; set; }
public string Type { get; set; }
}
}