Release 1.0.0.12: genre normalization and album organization
This commit is contained in:
1 parent
4bb222af8b
commit
7106023d49
11 files changed
+301
-17
No files matched your search
@@ -224,7 +224,9 @@ public sealed class YandexMusicClient
|
||||
|
||||
var language = string.IsNullOrWhiteSpace(Config.Language) ? "ru" : Config.Language;
|
||||
var map = await GetGenresAsync(language, cancellationToken).ConfigureAwait(false);
|
||||
return map.TryGetValue(genreId, out var name) ? name : genreId;
|
||||
return map.TryGetValue(genreId, out var name)
|
||||
? name
|
||||
: Jellyfin.Plugin.YandexMusic.Providers.GenreNameMap.Normalize(genreId);
|
||||
}
|
||||
|
||||
private async Task<Dictionary<string, string>> GetGenresAsync(string language, CancellationToken cancellationToken)
|
||||
|
||||
Reference in new issue
Block a user