mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
Fix multiple covers check method
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user