-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.js
1 lines (1 loc) · 2.94 KB
/
all.js
1
$(window).bind("load",function(){$(".play").html("Play"),$(".download").html("Download"),$(".play1").html("Play"),$(".dl1").html("Download")});var Complete=!1,Sc=new Object({title:"",title_tracking:0,progress:"",progress_tracking:0,container:'<div id="conversion_container"><div id="conversion"><div id="title">Getting video title <span class="loading"></span></div><div id="progress"><span class="text">Getting video information</span> <span class="loading"></span></div><div id="buttons"><a id="download_link" href="" rel="nofollow" target="_blank" class="left">download</a><a href="https://www.facebook.com/sharer/sharer.php?u=https://www.ocimscripts.com/" rel="nofollow" target="_blank" class="right">share on Facebook</a></div><div class="clear"></div></div><div class="separator"></div></div>',complete:!1});function Status(a,e,o,s){var t=!1,r=e;o.replace("Download","");$.ajax({url:"https://data.downloader.info/progress.php",async:!1,cache:!1,data:{id:a},dataType:"jsonp",success:function(e){switch(0<e.error.length&&(t[Result]=!0,clearInterval(ProgressBar[Result]),$("#download_"+Result+" .progress").hide(),$("#download_"+Result+" .info").html("An error has occured. Please try to convert a different video.")),parseInt(e.progress)){case 1:r.html("Checking video");break;case 2:r.html('<div style="color:#000"><img src="/oc-content/themes/mp3/images/loader.gif"/> Please wait a few seconds for download links to appear, our servers are overloaded...</div>');break;case 3:Sc.complete=!0,clearInterval(Sc.progress),t=!0,r.html(""),r.append("");var s="https://dl"+(parseInt(e.sid)+1)+".downloader.info/download.php?id="+a;r.append('<div class="downButtons" style="margin:5px"><b class="red">Choose a server to download your song!</b><br /><a rel="nofollow" class="dhs dss" href="" target="_blank"><span style="font-size:12px">HighSpeed Download</span></a><a rel="nofollow" class="ext dss" target="_blank" href="'+s+'">External Download</a><a rel="nofollow" class="dr dss" target="_blank" href="'+s+'"><span style="font-size:12px">Regular Download</span></a></div>');break;case 5:t=!0,r.html('<div class="errr" style="margin-top:5px;padding-left:10px;color:#000;">An error has occured. Please try to download a different song.</div>')}t||window.setTimeout(function(){console.log("converting"),Status(a,r,o)},3e3)}})}function downloadpl(a,e,o){var s=escape($(a).attr("title"));a=$("."+o).index(a);$(".playert").html(""),$(".playert").eq(a).show(),$(".playert").eq(a).html("<img src='/oc-content/themes/mp3/images/loader.gif'/>");var t=$(".playert:eq("+a+")");$(".play").eq(a);$(".play").attr("class","play"),$(".play").html("Play");var r=e;return $.ajax({url:"https://data.downloader.info/check.php",async:!1,cache:!1,data:{v:r,f:"mp3",s:"n/a",e:"n/a",sig:1337},dataType:"jsonp",success:function(e){if(-1<e.error.indexOf(5))return $(".playert").eq(a).html('<div class="downButtons" style="margin-top:5px;">An error has occured. Please try to download a different song.</div>'),!1;Status(e.hash,t,s,r)}}),!1}