mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
remove square image param, default item id for image
This commit is contained in:
@@ -460,7 +460,7 @@ const normalizePlaylist = (
|
|||||||
item: z.infer<typeof ndType._response.playlist>,
|
item: z.infer<typeof ndType._response.playlist>,
|
||||||
server?: null | ServerListItem,
|
server?: null | ServerListItem,
|
||||||
): Playlist => {
|
): Playlist => {
|
||||||
const imageId = !item.uploadedImage ? item.id : `pl-${item.id}&square=true&_=${item.updatedAt}`;
|
const imageId = !item.uploadedImage ? item.id : `${item.id}&_=${item.updatedAt}`;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
_itemType: LibraryItem.PLAYLIST,
|
_itemType: LibraryItem.PLAYLIST,
|
||||||
@@ -517,7 +517,7 @@ const normalizeInternetRadioStation = (
|
|||||||
item: z.infer<typeof ndType._response.radioStation>,
|
item: z.infer<typeof ndType._response.radioStation>,
|
||||||
): InternetRadioStation => {
|
): InternetRadioStation => {
|
||||||
const homepageUrl = item.homePageUrl?.trim() ? item.homePageUrl : null;
|
const homepageUrl = item.homePageUrl?.trim() ? item.homePageUrl : null;
|
||||||
const imageId = item.uploadedImage ? `ra-${item.id}&square=true&_=${item.updatedAt}` : item.id;
|
const imageId = item.uploadedImage ? `${item.id}&_=${item.updatedAt}` : item.id;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
homepageUrl,
|
homepageUrl,
|
||||||
|
|||||||
Reference in New Issue
Block a user