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:
@@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CsvHelper" Version="33.0.1" />
|
<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>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@@ -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