Skip to content

Commit 96ecf4a

Browse files
author
Meyn
committed
Remove unnecessary lastfm settings
1 parent 6f43b77 commit 96ecf4a

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Tubifarry/Metadata/Proxy/RecommendArtists/SimilarArtistsProxySettings.cs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public SimilarArtistsProxySettingsValidator()
1515
// Validate that the API key is not empty when enabled
1616
RuleFor(c => c.ApiKey)
1717
.NotEmpty()
18-
.When(c => c.Enabled)
1918
.WithMessage("Last.fm API Key is required when Similar Artists feature is enabled");
2019

2120
// Validate result limit
@@ -54,22 +53,19 @@ public SimilarArtistsProxySettings()
5453
Instance = this;
5554
}
5655

57-
[FieldDefinition(0, Label = "Enable Similar Artists", Type = FieldType.Checkbox, Section = MetadataSectionType.Metadata, HelpText = "Enable similar artist recommendations using 'similar:<artist name or MBID>' search prefix")]
58-
public bool Enabled { get; set; }
59-
60-
[FieldDefinition(1, Label = "Last.fm API Key", Type = FieldType.Textbox, Section = MetadataSectionType.Metadata, HelpText = "Your Last.fm API key for fetching similar artists", Privacy = PrivacyLevel.ApiKey)]
56+
[FieldDefinition(0, Label = "Last.fm API Key", Type = FieldType.Textbox, Section = MetadataSectionType.Metadata, HelpText = "Your Last.fm API key for fetching similar artists", Privacy = PrivacyLevel.ApiKey)]
6157
public string ApiKey { get; set; }
6258

63-
[FieldDefinition(2, Label = "Result Limit", Type = FieldType.Number, Section = MetadataSectionType.Metadata, HelpText = "Maximum number of similar artists to return (1-50). Only artists with MusicBrainz IDs are returned.", Placeholder = "10")]
59+
[FieldDefinition(1, Label = "Result Limit", Type = FieldType.Number, Section = MetadataSectionType.Metadata, HelpText = "Maximum number of similar artists to return (1-50). Only artists with MusicBrainz IDs are returned.", Placeholder = "10")]
6460
public int ResultLimit { get; set; }
6561

66-
[FieldDefinition(3, Label = "Fetch Images", Type = FieldType.Checkbox, Section = MetadataSectionType.Metadata, HelpText = "Scrape artist images from Last.fm web pages")]
62+
[FieldDefinition(2, Label = "Fetch Images", Type = FieldType.Checkbox, Section = MetadataSectionType.Metadata, HelpText = "Scrape artist images from Last.fm web pages")]
6763
public bool FetchImages { get; set; }
6864

69-
[FieldDefinition(4, Label = "Cache Type", Type = FieldType.Select, SelectOptions = typeof(CacheType), HelpText = "Select Memory (non-permanent) or Permanent caching")]
65+
[FieldDefinition(3, Label = "Cache Type", Type = FieldType.Select, SelectOptions = typeof(CacheType), HelpText = "Select Memory (non-permanent) or Permanent caching")]
7066
public int RequestCacheType { get; set; } = (int)CacheType.Permanent;
7167

72-
[FieldDefinition(5, Label = "Cache Directory", Type = FieldType.Path, HelpText = "Directory to store cached data (only used for Permanent caching)")]
68+
[FieldDefinition(4, Label = "Cache Directory", Type = FieldType.Path, HelpText = "Directory to store cached data (only used for Permanent caching)")]
7369
public string CacheDirectory { get; set; } = string.Empty;
7470

7571
public static SimilarArtistsProxySettings? Instance { get; private set; }

0 commit comments

Comments
 (0)