Skip to content

Commit

Permalink
Fix cloud daily image
Browse files Browse the repository at this point in the history
  • Loading branch information
HeHang0 committed Oct 31, 2023
1 parent 83cb170 commit 7d4c5b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web/src/utils/api/cloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,12 @@ export async function dailyPlayList(cookies: Record<string, string>) {
});
}
let playlist = await daily(cookies);
if (playlist) playlist.name = playlist.name.replace('<br />', ' ');
if (playlist) {
playlist.name = playlist.name.replace('<br />', ' ');
if (!playlist.image && list.length > 0) {
playlist.image = list[0].image.replace('100y100', '300y300');
}
}
return {
total,
list,
Expand Down

0 comments on commit 7d4c5b7

Please sign in to comment.