You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tubifarry/Metadata/Proxy/RecommendArtists/SimilarArtistsProxySettings.cs
+5-9Lines changed: 5 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,6 @@ public SimilarArtistsProxySettingsValidator()
15
15
// Validate that the API key is not empty when enabled
16
16
RuleFor(c =>c.ApiKey)
17
17
.NotEmpty()
18
-
.When(c =>c.Enabled)
19
18
.WithMessage("Last.fm API Key is required when Similar Artists feature is enabled");
20
19
21
20
// Validate result limit
@@ -54,22 +53,19 @@ public SimilarArtistsProxySettings()
54
53
Instance=this;
55
54
}
56
55
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
-
publicboolEnabled{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)]
61
57
publicstringApiKey{get;set;}
62
58
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")]
64
60
publicintResultLimit{get;set;}
65
61
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")]
67
63
publicboolFetchImages{get;set;}
68
64
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")]
0 commit comments