mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 10:54:55 +08:00
Compare commits
2 Commits
78bafb8508
...
3947050d6f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3947050d6f | ||
|
|
707d85bc75 |
@@ -12,7 +12,7 @@
|
|||||||
<Identity
|
<Identity
|
||||||
Name="37412.BetterLyrics"
|
Name="37412.BetterLyrics"
|
||||||
Publisher="CN=E1428B0E-DC1D-4EA4-ACB1-4556569D5BA9"
|
Publisher="CN=E1428B0E-DC1D-4EA4-ACB1-4556569D5BA9"
|
||||||
Version="1.2.244.0" />
|
Version="1.2.245.0" />
|
||||||
|
|
||||||
<mp:PhoneIdentity PhoneProductId="ca4a4830-fc19-40d9-b823-53e2bff3d816" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
<mp:PhoneIdentity PhoneProductId="ca4a4830-fc19-40d9-b823-53e2bff3d816" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||||
|
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ namespace BetterLyrics.WinUI3.Helper
|
|||||||
{
|
{
|
||||||
Directory.CreateDirectory(SettingsDirectory);
|
Directory.CreateDirectory(SettingsDirectory);
|
||||||
Directory.CreateDirectory(LogDirectory);
|
Directory.CreateDirectory(LogDirectory);
|
||||||
|
Directory.CreateDirectory(LyricsCacheDirectory);
|
||||||
Directory.CreateDirectory(iTunesAlbumArtCacheDirectory);
|
Directory.CreateDirectory(iTunesAlbumArtCacheDirectory);
|
||||||
Directory.CreateDirectory(LocalAlbumArtCacheDirectory);
|
Directory.CreateDirectory(LocalAlbumArtCacheDirectory);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,19 +14,15 @@ namespace BetterLyrics.WinUI3.Models
|
|||||||
|
|
||||||
// 关联到 MediaFolder.Id
|
// 关联到 MediaFolder.Id
|
||||||
// 注意:作为索引列,必须限制长度,否则 SQL Server 会报错 (索引最大900字节)
|
// 注意:作为索引列,必须限制长度,否则 SQL Server 会报错 (索引最大900字节)
|
||||||
[MaxLength(450)]
|
[MaxLength(450)] public string MediaFolderId { get; set; }
|
||||||
public string MediaFolderId { get; set; }
|
|
||||||
|
|
||||||
// 存储父文件夹的标准 URI
|
// 存储父文件夹的标准 URI
|
||||||
// 允许为空
|
// 允许为空
|
||||||
[MaxLength(450)]
|
[MaxLength(450)] public string? ParentUri { get; set; }
|
||||||
public string? ParentUri { get; set; }
|
|
||||||
|
|
||||||
// 唯一索引列
|
// 唯一索引列
|
||||||
// 必须限制长度。450字符 * 2字节/字符 = 900字节 (正好卡在 SQL Server 限制内)
|
// 必须限制长度。450字符 * 2字节/字符 = 900字节 (正好卡在 SQL Server 限制内)
|
||||||
[Required]
|
[Required][MaxLength(450)] public string Uri { get; set; }
|
||||||
[MaxLength(450)]
|
|
||||||
public string Uri { get; set; }
|
|
||||||
|
|
||||||
public string FileName { get; set; } = "";
|
public string FileName { get; set; } = "";
|
||||||
|
|
||||||
@@ -39,7 +35,7 @@ namespace BetterLyrics.WinUI3.Models
|
|||||||
// 下面的元数据字段通常不需要索引,可以使用 MaxLength 稍微优化空间,
|
// 下面的元数据字段通常不需要索引,可以使用 MaxLength 稍微优化空间,
|
||||||
// 或者直接留空(默认为 nvarchar(max))
|
// 或者直接留空(默认为 nvarchar(max))
|
||||||
public string Title { get; set; } = "";
|
public string Title { get; set; } = "";
|
||||||
public string Artist { get; set; } = "";
|
[Column("Artists")] public string Artist { get; set; } = "";
|
||||||
public string Album { get; set; } = "";
|
public string Album { get; set; } = "";
|
||||||
public int? Year { get; set; }
|
public int? Year { get; set; }
|
||||||
public int Bitrate { get; set; }
|
public int Bitrate { get; set; }
|
||||||
@@ -47,11 +43,9 @@ namespace BetterLyrics.WinUI3.Models
|
|||||||
public int BitDepth { get; set; }
|
public int BitDepth { get; set; }
|
||||||
public int Duration { get; set; }
|
public int Duration { get; set; }
|
||||||
|
|
||||||
[MaxLength(50)] // 格式名称通常很短,限制一下是个好习惯
|
[MaxLength(50)] public string AudioFormatName { get; set; } = "";
|
||||||
public string AudioFormatName { get; set; } = "";
|
|
||||||
|
|
||||||
[MaxLength(20)]
|
[MaxLength(20)] public string AudioFormatShortName { get; set; } = "";
|
||||||
public string AudioFormatShortName { get; set; } = "";
|
|
||||||
|
|
||||||
public string Encoder { get; set; } = "";
|
public string Encoder { get; set; } = "";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user