@@ -91,18 +91,18 @@ def link_video_to_component(video_component, user):
9191 return edx_video_id
9292
9393
94- def save_video_transcript_in_openedx_core (
94+ def save_video_transcript_in_openedx_content (
9595 usage_key ,
9696 input_format ,
9797 transcript_content ,
9898 language_code
9999):
100100 """
101- Saves a video transcript with the openedx-core Content API.
101+ Saves a video transcript with the openedx_content API.
102102
103- openedx-core uses the standard `.srt` format for subtitles.
103+ openedx_content uses the standard `.srt` format for subtitles.
104104 Note: SJSON is an edx-specific format that we're trying to move away from,
105- so for all new stuff related to openedx-core should only use `.srt`.
105+ so for all new stuff related to openedx_content should only use `.srt`.
106106
107107 Arguments:
108108 usage_key: UsageKey of the block
@@ -615,7 +615,7 @@ def choose_transcripts(request):
615615
616616 # 3. Upload the retrieved transcript to DS for the linked video ID.
617617 if isinstance (video .usage_key .context_key , LibraryLocatorV2 ):
618- success = save_video_transcript_in_openedx_core (
618+ success = save_video_transcript_in_openedx_content (
619619 video .usage_key ,
620620 input_format ,
621621 transcript_content ,
@@ -669,7 +669,7 @@ def rename_transcripts(request):
669669
670670 # 3. Upload the retrieved transcript to DS for the linked video ID.
671671 if isinstance (video .usage_key .context_key , LibraryLocatorV2 ):
672- success = save_video_transcript_in_openedx_core (
672+ success = save_video_transcript_in_openedx_content (
673673 video .usage_key ,
674674 input_format ,
675675 transcript_content ,
@@ -725,7 +725,7 @@ def replace_transcripts(request):
725725 for transcript in transcript_content :
726726 [language_code , json_content ] = transcript
727727 if isinstance (video .usage_key .context_key , LibraryLocatorV2 ):
728- success = save_video_transcript_in_openedx_core (
728+ success = save_video_transcript_in_openedx_content (
729729 video .usage_key ,
730730 Transcript .SJSON ,
731731 json_content ,
0 commit comments