mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
Merge pull request #1186 from smcpeck/EAP
Fix Headphones album search integration.
This commit is contained in:
commit
e43d2d8880
3 changed files with 4 additions and 1 deletions
|
@ -62,7 +62,7 @@ namespace Ombi.Core
|
||||||
|
|
||||||
// Artist is now active
|
// Artist is now active
|
||||||
// Add album
|
// Add album
|
||||||
var albumResult = await Api.AddAlbum(Settings.ApiKey, Settings.FullUri, request.MusicBrainzId);
|
var albumResult = await Api.AddAlbum(Settings.ApiKey, Settings.FullUri, request.ReleaseId);
|
||||||
if (!albumResult)
|
if (!albumResult)
|
||||||
{
|
{
|
||||||
Log.Error("Couldn't add the album to headphones");
|
Log.Error("Couldn't add the album to headphones");
|
||||||
|
|
|
@ -68,6 +68,8 @@ namespace Ombi.Store
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public bool CanApprove => !Approved && !Available;
|
public bool CanApprove => !Approved && !Available;
|
||||||
|
|
||||||
|
public string ReleaseId { get; set; }
|
||||||
|
|
||||||
public bool UserHasRequested(string username)
|
public bool UserHasRequested(string username)
|
||||||
{
|
{
|
||||||
return AllUsers.Any(x => x.Equals(username, StringComparison.OrdinalIgnoreCase));
|
return AllUsers.Any(x => x.Equals(username, StringComparison.OrdinalIgnoreCase));
|
||||||
|
|
|
@ -1513,6 +1513,7 @@ namespace Ombi.UI.Modules
|
||||||
{
|
{
|
||||||
Title = albumInfo.title,
|
Title = albumInfo.title,
|
||||||
MusicBrainzId = albumInfo.id,
|
MusicBrainzId = albumInfo.id,
|
||||||
|
ReleaseId = releaseId,
|
||||||
Overview = albumInfo.disambiguation,
|
Overview = albumInfo.disambiguation,
|
||||||
PosterPath = img,
|
PosterPath = img,
|
||||||
Type = RequestType.Album,
|
Type = RequestType.Album,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue