Fix multiple covers check method

This commit is contained in:
ema
2024-12-15 04:06:19 +08:00
parent 09bd9bc1f9
commit cd35e05461
2 changed files with 4 additions and 4 deletions

View File

@@ -276,9 +276,9 @@ public partial class ViewerPanel : UserControl, IDisposable, INotifyPropertyChan
{
var coverBytes = Convert.FromBase64String
(
coverData.Length % 4 == 0 // MediaInfo may will return multiple covers
? coverData
: coverData.Split(" / ")[0] // Get the first cover only
coverData.Contains(' ') // MediaInfo may will return multiple covers
? coverData.Split(" / ")[0] // Get the first cover only
: coverData
);
using var ms = new MemoryStream(coverBytes);