Skip to content

Commit 55780d0

Browse files
committed
Exclude Amazon from being used as a fallback
1 parent b9fb6f7 commit 55780d0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/App/Modules/ShareMusicCommandModule/commands/HandleMusicShareAsync.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,14 @@ await FollowupAsync(
7676
}
7777
catch (Exception ex)
7878
{
79-
var streamingEntityWithThumbnailUrl = musicEntityItem.EntitiesByUniqueId!.FirstOrDefault(entity => entity.Value.ThumbnailUrl is not null).Value.ApiProvider;
79+
/*
80+
Temporary fix:
81+
82+
Amazon is being excluded from the fallback for the time being,
83+
because the "apiProvider" value doesn't cleanly match it's platform
84+
entity link key.
85+
*/
86+
var streamingEntityWithThumbnailUrl = musicEntityItem.EntitiesByUniqueId!.FirstOrDefault(entity => entity.Value.ThumbnailUrl is not null && entity.Value.ApiProvider != "amazon").Value.ApiProvider;
8087

8188
if (!string.IsNullOrEmpty(streamingEntityWithThumbnailUrl))
8289
{

0 commit comments

Comments
 (0)