From bdb4e2675d90f92c2ee0fc2f1fb9c6f0e8b304c5 Mon Sep 17 00:00:00 2001 From: sohailm100 <158144414+sohailm100@users.noreply.github.com> Date: Mon, 16 Sep 2024 15:08:43 +0530 Subject: [PATCH] updated response url for transcript auto suggestion --- .../video/transcripts/get_cdn_secure_transcript_url.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cms/static/js/views/video/transcripts/get_cdn_secure_transcript_url.js b/cms/static/js/views/video/transcripts/get_cdn_secure_transcript_url.js index 634b3304c7c4..34761838628e 100644 --- a/cms/static/js/views/video/transcripts/get_cdn_secure_transcript_url.js +++ b/cms/static/js/views/video/transcripts/get_cdn_secure_transcript_url.js @@ -27,7 +27,11 @@ define(["jquery", "backbone", "underscore"], function($, Backbone) { scroll: true, autoFocus: true, select: function(event, ui) { - ui.item.value = "https://" + ui.item.domain + "/content/" + ui.item.value; + if(ui.item.domain == "cdn.exec.talentsprint.com" || ui.item.domain == "cdn.chn.talentsprint.com") { + ui.item.value = "https://" + ui.item.domain + "/content/" + ui.item.value; + }else { + ui.item.value = "https://" + ui.item.domain + "/content/" + Crypto.MD5(ui.item.value + "dingdong") + "/" + ui.item.value; + } $(this).val(ui.item.value); $(this).trigger("input"); event.preventDefault();