Skip to content

Commit

Permalink
Added field
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandana3008 authored Oct 25, 2024
1 parent 25ef1a0 commit 19ffb46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xmodule/video_block/video_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,7 @@ def get_context(self):
video_id = metadata_fields['edx_video_id']
youtube_id_1_0 = metadata_fields['youtube_id_1_0']
transcript_url = metadata_fields['transcript_url']
transcript_download_role = metadata_fields['transcript_download_role']

def get_youtube_link(video_id):
"""
Expand Down Expand Up @@ -935,7 +936,8 @@ def get_youtube_link(video_id):
'display_name': display_name,
'video_url': video_url,
'edx_video_id': video_id,
'transcript_url': transcript_url
'transcript_url': transcript_url,
'transcript_download_role': transcript_download_role
}

_context.update({'transcripts_basic_tab_metadata': metadata})
Expand Down

0 comments on commit 19ffb46

Please sign in to comment.