mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Made some good process on getting the backend up and running for requesting albums etc
This commit is contained in:
parent
f921d84b0b
commit
4b7d7410ae
15 changed files with 114 additions and 42 deletions
|
@ -28,7 +28,6 @@ namespace Ombi.Core.Models.Search
|
|||
[NotMapped]
|
||||
public string TheMovieDbId { get; set; }
|
||||
|
||||
|
||||
[NotMapped]
|
||||
public bool Subscribed { get; set; }
|
||||
[NotMapped]
|
||||
|
|
|
@ -53,13 +53,4 @@ namespace Ombi.Core.Models.Search.V2.Music
|
|||
public string Google { get; set; }
|
||||
public string Apple { get; set; }
|
||||
}
|
||||
|
||||
public class ReleaseGroup
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string ReleaseDate { get; set; }
|
||||
public string Type { get; set; }
|
||||
|
||||
}
|
||||
}
|
17
src/Ombi.Core/Models/Search/V2/Music/ReleaseGroup.cs
Normal file
17
src/Ombi.Core/Models/Search/V2/Music/ReleaseGroup.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using Ombi.Store.Entities;
|
||||
|
||||
namespace Ombi.Core.Models.Search.V2.Music
|
||||
{
|
||||
public class ReleaseGroup : SearchViewModel
|
||||
{
|
||||
public new string Id { get; set; }
|
||||
public override RequestType Type => RequestType.Album;
|
||||
public string Title { get; set; }
|
||||
public string ReleaseDate { get; set; }
|
||||
public string ReleaseType { get; set; }
|
||||
public decimal PercentOfTracks { get; set; }
|
||||
public bool Monitored { get; set; }
|
||||
public bool PartiallyAvailable => PercentOfTracks != 100 && PercentOfTracks > 0;
|
||||
public bool FullyAvailable => PercentOfTracks == 100;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue