mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 10:19:07 +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
|
var coverBytes = Convert.FromBase64String
|
||||||
(
|
(
|
||||||
coverData.Length % 4 == 0 // MediaInfo may will return multiple covers
|
coverData.Contains(' ') // MediaInfo may will return multiple covers
|
||||||
? coverData
|
? coverData.Split(" / ")[0] // Get the first cover only
|
||||||
: coverData.Split(" / ")[0] // Get the first cover only
|
: coverData
|
||||||
);
|
);
|
||||||
using var ms = new MemoryStream(coverBytes);
|
using var ms = new MemoryStream(coverBytes);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user