Commit ed63a99a by David Adams

Fix json_update_videos()

      commit (1f5c95ba) to transcript_utils.py changed the sig of download_youtube_subs
    from def download_youtube_subs(youtube_subs, item, settings):
    to def download_youtube_subs(youtube_id, video_descriptor, settings):

    hence taking a video id instead of a dict.

    This broke the download captions feature from the utilities page.
parent bff9ddf1
......@@ -86,7 +86,7 @@ def json_update_videos(request, locations):
try:
#update transcripts
item = modulestore().get_item(key)
download_youtube_subs({1.0: item.youtube_id_1_0}, item, settings)
download_youtube_subs(item.youtube_id_1_0, item, settings)
#get new status
videos = {'youtube': item.youtube_id_1_0}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment