Release 1.0.0.13: fix cover size

This commit is contained in:
1xDed committed 2026-12-02 20:58:36 +03:00
1 parent 7106023d49
commit 7b4c6e9368
8 files changed
+17 -17

No files matched your search

@@ -145,7 +145,7 @@ public class YandexMusicImageProvider : IRemoteImageProvider, IHasOrder
var byId = await _client.GetAlbumAsync(albumId.Value, cancellationToken).ConfigureAwait(false);
if (byId is not null)
{
return Collect(byId.CoverUri, ImageType.Primary, 1200);
return Collect(byId.CoverUri, ImageType.Primary, 1000);
}
}
@@ -160,7 +160,7 @@ public class YandexMusicImageProvider : IRemoteImageProvider, IHasOrder
config.MatchThreshold);
return match is null
? []
: Collect(match.Value.Album.CoverUri, ImageType.Primary, 1200);
: Collect(match.Value.Album.CoverUri, ImageType.Primary, 1000);
}
private async Task<List<(string Url, ImageType Type, int Size)>> GetArtistCoversAsync(
@@ -198,13 +198,13 @@ public class YandexMusicImageProvider : IRemoteImageProvider, IHasOrder
var primaryAdded = false;
foreach (var uri in uris.Where(u => !string.IsNullOrWhiteSpace(u)).Distinct(StringComparer.Ordinal))
{
var url = YandexMusicClient.BuildCoverUrl(uri, primaryAdded ? 1920 : 1200);
var url = YandexMusicClient.BuildCoverUrl(uri, primaryAdded ? 1000 : 1000);
if (url is null)
{
continue;
}
covers.Add((url, primaryAdded ? ImageType.Backdrop : ImageType.Primary, primaryAdded ? 1920 : 1200));
covers.Add((url, primaryAdded ? ImageType.Backdrop : ImageType.Primary, primaryAdded ? 1000 : 1000));
primaryAdded = true;
}