diff --git a/src/app/[stream]/podcasts/podcastCard.tsx b/src/app/[stream]/podcasts/podcastCard.tsx
index 96c5baf..9deb4f9 100644
--- a/src/app/[stream]/podcasts/podcastCard.tsx
+++ b/src/app/[stream]/podcasts/podcastCard.tsx
@@ -12,7 +12,7 @@ export default function PodcastCard({
return (
-
+
diff --git a/src/common/helpers/data.ts b/src/common/helpers/data.ts
index b606205..f7d17ee 100644
--- a/src/common/helpers/data.ts
+++ b/src/common/helpers/data.ts
@@ -3,6 +3,7 @@ import os from 'os';
import path from 'path';
import mime from 'mime-types';
import { PodcastDto } from '../dtos/podcastDto';
+import { StreamDto } from '../dtos/streamDto';
export const getFileSize = (filePath: string): number => {
const stats = fs.statSync(filePath);
@@ -32,8 +33,15 @@ export const preparePodcastItem = (podcast: PodcastDto) => {
type: getFileMimeType(podcast.url ?? ''),
size: fileSize
}
- }
-}
+ };
+};
+
+export const prepareStreamItem = (stream: StreamDto) => {
+ return {
+ ...stream,
+ imageUrl: convertUrlToPublic(stream.imageUrl)
+ };
+};
export const getLocalIpAddress = (): string => {
const networkInterfaces = os.networkInterfaces();