You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
601 B
22 lines
601 B
using System;
|
|
|
|
namespace NzbDrone.Core.IndexerSearch.Definitions
|
|
{
|
|
public class AlbumSearchCriteria : SearchCriteriaBase
|
|
{
|
|
public override string ToString()
|
|
{
|
|
var baseRepresentation = $"[{Artist.Name} - {Album.Title}]";
|
|
if (Album.ReleaseDate.HasValue)
|
|
{
|
|
var beforeLast = baseRepresentation.Length - 1;
|
|
return baseRepresentation.Insert(beforeLast, $" ({Album.ReleaseDate.Value.Year})");
|
|
}
|
|
else
|
|
{
|
|
return baseRepresentation;
|
|
}
|
|
}
|
|
}
|
|
}
|