Add debugging logs for recommended videos

Added console logs in VideoPage.tsx to debug and inspect the recommended videos data, including videoId, total videos, filtered count, and a sample of the recommended videos.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/DFHhzsd
This commit is contained in:
sebastjanartic 2025-08-30 20:14:34 +00:00
parent cb27862cb5
commit ae56bdc0fa

View File

@ -70,6 +70,14 @@ export default function VideoPage() {
const recommendedVideos = recommendedResponse?.videos?.filter(v => v.id !== videoId) || [];
// Debug: Preverimo ali imamo priporočene videji
console.log('Recommended videos debug:', {
videoId,
totalVideos: recommendedResponse?.videos?.length,
filteredCount: recommendedVideos.length,
recommendedVideos: recommendedVideos.slice(0, 3)
});
// Update page meta tags for social sharing
useEffect(() => {
if (currentVideo) {