Method, Variable, Class Renames in Readarr.Core

Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
Qstick
2020-05-12 22:48:46 -04:00
parent 56aedcc467
commit 8547af9fae
572 changed files with 6584 additions and 6597 deletions
@@ -2,7 +2,7 @@ using System.Collections.Generic;
using System.Text.RegularExpressions;
using NzbDrone.Common.EnsureThat;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Music;
using NzbDrone.Core.Books;
namespace NzbDrone.Core.IndexerSearch.Definitions
{
@@ -12,20 +12,21 @@ namespace NzbDrone.Core.IndexerSearch.Definitions
private static readonly Regex NonWord = new Regex(@"[\W]", RegexOptions.IgnoreCase | RegexOptions.Compiled);
private static readonly Regex BeginningThe = new Regex(@"^the\s", RegexOptions.IgnoreCase | RegexOptions.Compiled);
public virtual bool MonitoredEpisodesOnly { get; set; }
public virtual bool MonitoredBooksOnly { get; set; }
public virtual bool UserInvokedSearch { get; set; }
public virtual bool InteractiveSearch { get; set; }
public Author Artist { get; set; }
public List<Book> Albums { get; set; }
public Author Author { get; set; }
public List<Book> Books { get; set; }
public string ArtistQuery => GetQueryTitle(Artist.Name);
public string ArtistQuery => GetQueryTitle(Author.Name);
public static string GetQueryTitle(string title)
{
Ensure.That(title, () => title).IsNotNullOrWhiteSpace();
// Most VA albums are listed as VA, not Various Artists
// TODO: Needed in Readarr??
if (title == "Various Artists")
{
title = "VA";