mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Add prelim work for Album Filtering
This commit is contained in:
parent
74f91d63f6
commit
b963f2aa82
9 changed files with 72 additions and 5 deletions
|
@ -29,6 +29,8 @@ namespace Lidarr.Api.V3.Artist
|
|||
public string Overview { get; set; }
|
||||
public string ArtistType { get; set; }
|
||||
public string Disambiguation { get; set; }
|
||||
public string PrimaryAlbumTypes { get; set; }
|
||||
public string SecondaryAlbumTypes { get; set; }
|
||||
public List<Links> Links { get; set; }
|
||||
|
||||
public int? AlbumCount { get; set; }
|
||||
|
@ -87,6 +89,9 @@ namespace Lidarr.Api.V3.Artist
|
|||
ArtistType = model.ArtistType,
|
||||
Disambiguation = model.Disambiguation,
|
||||
|
||||
PrimaryAlbumTypes = model.PrimaryAlbumTypes,
|
||||
SecondaryAlbumTypes = model.SecondaryAlbumTypes,
|
||||
|
||||
Images = model.Images,
|
||||
|
||||
Albums = model.Albums.ToResource(),
|
||||
|
@ -142,6 +147,8 @@ namespace Lidarr.Api.V3.Artist
|
|||
ProfileId = resource.QualityProfileId,
|
||||
LanguageProfileId = resource.LanguageProfileId,
|
||||
Links = resource.Links,
|
||||
PrimaryAlbumTypes = resource.PrimaryAlbumTypes,
|
||||
SecondaryAlbumTypes = resource.SecondaryAlbumTypes,
|
||||
|
||||
AlbumFolder = resource.AlbumFolder,
|
||||
Monitored = resource.Monitored,
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
using FluentMigrator;
|
||||
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migration
|
||||
{
|
||||
[Migration(120)]
|
||||
public class artist_album_types : NzbDroneMigrationBase
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Alter.Table("Artists")
|
||||
.AddColumn("PrimaryAlbumTypes").AsString().Nullable()
|
||||
.AddColumn("SecondaryAlbumTypes").AsString().Nullable();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -36,6 +36,8 @@ namespace NzbDrone.Core.Music
|
|||
public string Overview { get; set; }
|
||||
public string Disambiguation { get; set; }
|
||||
public string ArtistType { get; set; }
|
||||
public string PrimaryAlbumTypes { get; set; }
|
||||
public string SecondaryAlbumTypes { get; set; }
|
||||
public bool Monitored { get; set; }
|
||||
public bool AlbumFolder { get; set; }
|
||||
public DateTime? LastInfoSync { get; set; }
|
||||
|
@ -73,6 +75,8 @@ namespace NzbDrone.Core.Music
|
|||
LanguageProfileId = otherArtist.LanguageProfileId;
|
||||
|
||||
Albums = otherArtist.Albums;
|
||||
PrimaryAlbumTypes = otherArtist.PrimaryAlbumTypes;
|
||||
SecondaryAlbumTypes = otherArtist.SecondaryAlbumTypes;
|
||||
|
||||
ProfileId = otherArtist.ProfileId;
|
||||
Tags = otherArtist.Tags;
|
||||
|
|
|
@ -293,6 +293,7 @@
|
|||
</Compile>
|
||||
<Compile Include="Datastore\Migration\105_rename_torrent_downloadstation.cs" />
|
||||
<Compile Include="Datastore\Migration\111_create_language_profiles.cs" />
|
||||
<Compile Include="Datastore\Migration\120_artist_album_types.cs" />
|
||||
<Compile Include="Datastore\Migration\119_artist_type.cs" />
|
||||
<Compile Include="Datastore\Migration\118_history_trackid.cs" />
|
||||
<Compile Include="Datastore\Migration\117_artist_links.cs" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue