From 4dc9f213560572c37b42439667d0aa3a182b282a Mon Sep 17 00:00:00 2001 From: "Khairul Anwar (kulll)" Date: Fri, 27 Jun 2014 11:36:22 +0800 Subject: [PATCH 1/2] fix subtitle for https --- .../transcode/star/browser/js/unisubs-widgetizer-inner.js | 2 +- collective/transcode/star/browser/viewlet.pt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/collective/transcode/star/browser/js/unisubs-widgetizer-inner.js b/collective/transcode/star/browser/js/unisubs-widgetizer-inner.js index 2ae0b33..449775a 100644 --- a/collective/transcode/star/browser/js/unisubs-widgetizer-inner.js +++ b/collective/transcode/star/browser/js/unisubs-widgetizer-inner.js @@ -1365,7 +1365,7 @@ o.Gh=function(){var a=rd(this.Jc||window);if(!fd(a,this.ef)){this.ef=a;this.disp function xi(a,b,c,d,f,g,h){if(g>0&&pa()>=g||h>200)return false;var j=false;if(a.nodeType==3){b=zi(a.nodeValue,b,c,d);if(b!=null){j=id(a).createElement("SPAN");j.innerHTML=b;for(b=a.parentNode;(c=j.firstChild)!=null;)b.insertBefore(c,a);b.removeChild(a);j=true}}else if(a.hasChildNodes()&&!E(yi,a.tagName)){var l=a.className.split(/\s+/);if(!vb(l,function(n){return E(f,n)})){++h;for(l=a.firstChild;l;){a=l.nextSibling;l=xi(l,b,c,d,f,g,h);j=j||l;l=a}}}return j}var Ai=/\W/; function zi(a,b,c,d){var f=false,g=d?a.toLowerCase():a,h=g.length;d=b.length;for(var j=new Array(d),l=0;l=h||Ai.test(g.charAt(lj)))){q.push(Ga);f=true}R=Ga+n}}}j[l]=q}if(f){f=[];for(R=0;;){var Ee;g=-1;for(l=0;l=0&&Ga=0&&(g<0||Ga< g)){Ee=l;g=Ga}}}if(g<0)break;j[Ee].shift();f.push(ya(a.substr(R,g-R)));n=b[Ee][0].length;l=ya(a.substr(g,n));f.push(c(Ee,l));R=g+n}f.push(ya(a.substr(R)));return f.join("")}else return null}"en".substring(0,2)=="ar"||"en".substring(0,2)=="fa"||"en".substring(0,2)=="he"||"en".substring(0,2)=="iw"||"en".substring(0,2)=="ur"||"en".substring(0,2); -var Bi=new RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Ci=new RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]"),Di=/^http:\/\/.*/,Ei=/\s+/,Fi=/\d/;var Gi={},Hi,Ii={siteURL:"http://www.amara.org",staticURL:"http://s3.amazonaws.com/s3.www.universalsubtitles.org/static-cache/da20c57a/"};var Ji=null,Ki=null,Li=null,Mi=null,Ni=0,Oi=null,Pi=null;function Qi(a){if(Pi==null){Pi={};for(var b=0;b Date: Thu, 3 Jul 2014 08:42:04 +0800 Subject: [PATCH 2/2] Update viewlet.pt proper indentation --- collective/transcode/star/browser/viewlet.pt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collective/transcode/star/browser/viewlet.pt b/collective/transcode/star/browser/viewlet.pt index 06acc22..fc3b684 100644 --- a/collective/transcode/star/browser/viewlet.pt +++ b/collective/transcode/star/browser/viewlet.pt @@ -311,7 +311,7 @@ $('div.videobar').mouseleave( } else { player.setSrc('${view/profiles/mp4-low/address|nothing}/${view/profiles/mp4-low/path|nothing}'); } - player.load(); + player.load(); player.play(); return false }); @@ -326,7 +326,7 @@ $('div.videobar').mouseleave( } else { player.setSrc('${view/profiles/mp4-high/address|nothing}/${view/profiles/mp4-high/path|nothing}'); } - player.load(); + player.load(); player.play(); return false });