일부 YouTube 동영상에서 지연 로드 비디오 원박스가 올바르게 로드되지 않음

최근 사용자들로부터 YouTube 동영상 임베드와 관련된 문제가 보고되었습니다. 일부 YouTube 링크는 이전과 동일하게 정상적으로 작동하지만, 일부는 부분적으로 임베드되고, 또 일부는 완전히 깨진 상태입니다.

예시:
(완전히 정상 작동)

(이미지 있음 - 제목 없음)

(이미지 없음, 제목 없음)

부분적으로 onebox가 적용되는 동영상의 경우, YouTube 임베드 링크 https://www.youtube.com/embed/{video_id}가 작동하지 않는 것으로 보입니다.

4개의 좋아요

For me the common thread has been ‘Shorts’ which seem to break like this regularly.

I wonder if it’s related to the thumbnail on YouTubes side being generated after a significant delay?

Seems to often resolve with a rebuild of the Post, but would agree it would be nice if it didn’t happen in the first place.

3개의 좋아요

If I’m reading this right system will get thumbnail from this url discourse/lib/onebox/engine/youtube_onebox.rb at main · discourse/discourse · GitHub

I did check it out manually and thumbnails are sometimes loaded a bit slower, but nothing that bad. For now as well I see consistent results. If onebox does not work for a video, it newer works.

As far as I have tested post rebuild produces the same result each time. I might add that meta.discourse.org behaves in the exactly the same way as my Discourse installation.

1개의 좋아요

On the video you shared, the critical url is the meta tag og:image which is:


https://i.ytimg.com/vi/XdU2mwcUzcg/hqdefault.jpg

which seems valid

So yes, this does look like a problem with OneBox?

4개의 좋아요

+1 for this issue.

My installation is experiencing all the different behaviours for YT oneboxing as described above.

First reported incident was 26th July 2024 by my users

Just updated discourse and docker and it all seems fixed now. Because of course it does after you +1 a bug!

Not sure if this is the same bug
Embedding https://www.youtube.com/watch?v=RCSQlmUnMFs

Gives a really weird composer preview

2개의 좋아요

Just letting you know, we are tracking this and will see if we can get it sorted in the next 4 weeks or so.

If a community member figures out what is off pr-welcome

8개의 좋아요

이 버그에 대해 더 알려진 것이 있나요?

다시 불만이 접수되고 있습니다. 현재도 -dev 채널에 있지만(곧 tests-passed로 돌아가기 위해 기다리고 있습니다).

죄송합니다. 아직 보고할 내용이 많지 않지만, 해당 문제는 처리 목록에 올라가 있습니다.

YouTube가 접속하는 IP에 따라 다른 콘텐츠를 전송하는 것 같으며, 이것이 문제의 원인이 될 수 있습니다.

1개의 좋아요

Hi @WaitroseCarpark, Sam이 언급했듯이, 이는 서버의 IP 주소가 해당 비디오에 액세스하려는 시도와 관련이 있는 것 같습니다. 아마도 봇을 방지하기 위해 YouTube가 적용한 변경 사항 때문일 가능성이 높습니다. 다만, 현재 이 문제를 조사 중입니다.

그동안 비디오 메타데이터를 사용할 수 없는 경우를 돕기 위해 이 PR을 병합했습니다:

이 패치를 적용한 후에도 여전히 해당 문제가 발생하고 있습니까?

3개의 좋아요

jancernik 님, 감사합니다. 위에서 언급했듯이 dev 채널에서 벗어나는 것을 기다리고 있지만, ChatGPT를 참고로 discourse에 이 수정 사항을 cherry-pick하도록 요청해 보았지만 제 능력으로는 좀 어렵습니다. 이 문제를 겪고 계신 다른 분이 시도해 주실 수 있을까요?

실제로는 - 제가 수정을 적용한 것 같습니다. 알려진 문제가 있는 YouTube 영상을 시도해 봤는데, 동일한 문제가 발생하고 있습니다. Docker/CLI 관련 작업에는 익숙하지 않아서 다른 사람도 같은 문제를 겪고 있는지 확인하고 싶긴 하지만, 솔직히 정말 무섭습니다.

패치가 작동하는 것 같습니다. 몇 개의 동영상 링크로 테스트해 보았습니다.

2개의 좋아요

이 주제는 4일 후 자동으로 닫혔습니다. 더 이상 새로운 답변이 허용되지 않습니다.