Skip to content

Commit 31bf136

Browse files
committed
Add Discogs support
1 parent 2a95ce4 commit 31bf136

27 files changed

Lines changed: 613 additions & 8 deletions

MiniMediaMetadataAPI.Application/Enums/ProviderType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ public enum ProviderType
44
{
55
Any,
66
Deezer,
7+
Discogs,
78
MusicBrainz,
89
Spotify,
910
Tidal
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace MiniMediaMetadataAPI.Application.Models.Database.Discogs;
2+
3+
public class DiscogsAlias
4+
{
5+
public int Id { get; set; }
6+
public string Name { get; set; }
7+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace MiniMediaMetadataAPI.Application.Models.Database.Discogs;
2+
3+
public class DiscogsArtist
4+
{
5+
public int ArtistId { get; set; }
6+
public string Name { get; set; }
7+
public string RealName { get; set; }
8+
public string Profile { get; set; }
9+
public string DataQuality { get; set; }
10+
public DateTime lastsynctime { get; set; }
11+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace MiniMediaMetadataAPI.Application.Models.Database.Discogs;
2+
3+
public class DiscogsArtistAlias
4+
{
5+
public int ArtistId { get; set; }
6+
public int AliasId { get; set; }
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace MiniMediaMetadataAPI.Application.Models.Database.Discogs;
2+
3+
public class DiscogsArtistUrl
4+
{
5+
public int ArtistId { get; set; }
6+
public string Url { get; set; }
7+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace MiniMediaMetadataAPI.Application.Models.Database.Discogs;
2+
3+
public class DiscogsLabel
4+
{
5+
public int LabelId { get; set; }
6+
public string Name { get; set; }
7+
public string ContactInfo { get; set; }
8+
public string Profile { get; set; }
9+
public string DataQuality { get; set; }
10+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace MiniMediaMetadataAPI.Application.Models.Database.Discogs;
2+
3+
public class DiscogsLabelSubLabel
4+
{
5+
public int LabelId { get; set; }
6+
public int SubLabelId { get; set; }
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace MiniMediaMetadataAPI.Application.Models.Database.Discogs;
2+
3+
public class DiscogsLabelUrl
4+
{
5+
public int LabelId { get; set; }
6+
public string Url { get; set; }
7+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace MiniMediaMetadataAPI.Application.Models.Database.Discogs;
2+
3+
public class DiscogsRelease
4+
{
5+
public int ReleaseId { get; set; }
6+
public string Status { get; set; }
7+
public string Title { get; set; }
8+
public string Country { get; set; }
9+
public string Released { get; set; }
10+
public string Notes { get; set; }
11+
public string DataQuality { get; set; }
12+
public bool IsMainRelease { get; set; }
13+
public int MasterId { get; set; }
14+
public int TrackCount { get; set; }
15+
16+
public List<DiscogsReleaseArtist> Artists { get; set; } = new List<DiscogsReleaseArtist>();
17+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace MiniMediaMetadataAPI.Application.Models.Database.Discogs;
2+
3+
public class DiscogsReleaseArtist
4+
{
5+
public int ReleaseId { get; set; }
6+
public int ArtistId { get; set; }
7+
public string Name { get; set; }
8+
}

0 commit comments

Comments
 (0)