thenewboston-developers / thenewboston-Backend

API for thenewboston.
18 stars 10 forks source link

Certain lectures not working #200

Closed buckyroberts closed 5 months ago

buckyroberts commented 6 months ago

On various lectures, the video player is not working.

Screen Shot 2024-05-23 at 8 18 30 PM
bexeGrace commented 5 months ago

The problem is not in the frontend. Rather it is in the data coming from the backend. The youtube_id in the data of videos not working is not correctly stored in the database that the frontend fetches wrong url. I tried to show it on the next images

bexeGrace commented 5 months ago

Screenshot (80) Screenshot (81)

In the first image the video selected is lecture 3 and it has correct url in its youtube_id field in the data fetched from the backend. But, as clearly shown in the second image the video selected is lecture 1(which is among the videos not playing) has incorrect url in the youtube_id field so it would be better to fix it in the backend. Or consider recreating the lectures

MAbdurrehman1 commented 5 months ago

@buckyroberts yeah, Betsegaw is right. Invalid youtube IDs have been entered. I think, we need to get these corrected.

image image image

ps: These are my thoughts on the PR linked with this issue: https://github.com/thenewboston-developers/thenewboston-Backend/pull/211#issuecomment-2164169460

I'm going to close this ticket, but if you think that we do need to add some sort of validation, then please feel free to reopen it.