mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-14 12:19:08 +00:00
Fix multiple covers check method
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CsvHelper" Version="33.0.1" />
|
||||
<PackageReference Include="UTF.Unknown" Version="2.5.1" />
|
||||
<PackageReference Include="UTF.Unknown" Version="2.5.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@@ -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