diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx
index aeb0703..0273fdf 100644
--- a/client/src/pages/VideoPage.tsx
+++ b/client/src/pages/VideoPage.tsx
@@ -315,10 +315,14 @@ export default function VideoPage() {
- {currentVideo.description && (
+ {currentVideo.description ? (
{currentVideo.description}
+ ) : (
+
+
Opis videa ni na voljo.
+
)}
diff --git a/server/bunny.ts b/server/bunny.ts
index ee0f8d0..1b23d69 100644
--- a/server/bunny.ts
+++ b/server/bunny.ts
@@ -122,6 +122,8 @@ export class BunnyService {
// Filter only successfully processed videos (status 4 = finished)
const processedVideos = response.items.filter(video => video.status === 4);
+
+
const videos = processedVideos.map(video => this.bunnyVideoToVideo(video));
return {
diff --git a/server/routes.ts b/server/routes.ts
index 7548e83..d32ab75 100644
--- a/server/routes.ts
+++ b/server/routes.ts
@@ -176,6 +176,8 @@ export async function registerRoutes(app: Express): Promise {
}
});
+
+
app.get("/api/videos", async (req, res) => {
try {
const limit = parseInt(req.query.limit as string) || 20;