-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConfig.cs
More file actions
50 lines (36 loc) · 1.55 KB
/
Config.cs
File metadata and controls
50 lines (36 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace OpenMediaBridge
{
public class Config
{
[JsonPropertyName("port")]
public int Port { get; set; }
[JsonPropertyName("ignorePlayers")]
public string[] IgnorePlayers { get; set; }
[JsonPropertyName("lyrics_port")]
public int LyricsPort { get; set; } = 6555;
[JsonPropertyName("cover_port")]
public int CoverPort { get; set; } = 8081;
public List<string> DisableLyricsFor { get; set; } = new();
[JsonPropertyName("offset_ms")]
public int OffsetMs { get; set; } = 0;
[JsonPropertyName("cache_folder")]
public string CacheFolder { get; set; } = "cache";
[JsonPropertyName("filter_cjk_lyrics")]
public bool FilterCjkLyrics { get; set; } = true;
[JsonPropertyName("offline_mode")]
public bool OfflineMode { get; set; } = false;
[JsonPropertyName("lrclib_database_path")]
public string LrclibDatabasePath { get; set; } = "db.sqlite3";
[JsonPropertyName("plain_lyrics_fallback")]
public bool PlainLyricsFallback { get; set; } = false;
// Discord integration (optional - leave token empty to disable)
[JsonPropertyName("discord_token")]
public string DiscordToken { get; set; } = "";
[JsonPropertyName("discord_emoji")]
public string DiscordEmoji { get; set; } = "🎶";
[JsonPropertyName("discord_show_prefix")]
public bool DiscordShowPrefix { get; set; } = true;
}
}