diff --git a/xmodule/video_block/video_block.py b/xmodule/video_block/video_block.py index b4fddb63fa7a..30494001ff99 100644 --- a/xmodule/video_block/video_block.py +++ b/xmodule/video_block/video_block.py @@ -645,6 +645,9 @@ def editor_saved(self, user, old_metadata, old_content): # lint-amnesty, pylint if val_youtube_id and self.youtube_id_1_0 != val_youtube_id: self.youtube_id_1_0 = val_youtube_id + if self.youtube_id_1_0: + self.thumbnail = f"https://img.youtube.com/vi/{self.youtube_id_1_0}/sddefault.jpg" + manage_video_subtitles_save( self, user, @@ -1120,6 +1123,7 @@ def index_dictionary(self): xblock_body = super().index_dictionary() video_body = { "display_name": self.display_name, + "thumbnail": self.thumbnail, } def _update_transcript_for_index(language=None):