UNPKG

baiscopelk-api

Version:

This is a api for search and download sinhala subtitle using baiscope.lk

1 lines 9.25 kB
function _0x2f26de(_0x2fd499,_0x43860e,_0x2ef42d,_0x5a5ee1){return _0x1ae2(_0x2ef42d-0x22d,_0x5a5ee1);}function _0x309d2f(_0xa24308,_0x433ad6,_0x43fd6b,_0x1cb9a2){return _0x1ae2(_0x43fd6b- -0x348,_0x433ad6);}(function(_0x239f8b,_0x4a747e){function _0x33d892(_0x3f0783,_0x3fabe6,_0x4d6547,_0x205d94){return _0x1ae2(_0x4d6547-0x230,_0x3fabe6);}function _0x149c96(_0x4d61b5,_0x47f218,_0x1454d6,_0x4e7337){return _0x1ae2(_0x47f218- -0x58,_0x4e7337);}const _0x19af32=_0x239f8b();while(!![]){try{const _0x4641c4=parseInt(_0x149c96(0x17d,0x175,0x164,0x18c))/(0x1a91*0x1+-0x2*-0xc51+-0x1999*0x2)*(parseInt(_0x149c96(0x165,0x154,0x144,0x14d))/(0x1*-0x542+0x13bb*-0x1+0x18ff))+parseInt(_0x149c96(0x180,0x172,0x174,0x16f))/(0x1818+0x1*0x156b+-0x70*0x68)+-parseInt(_0x149c96(0x170,0x169,0x17a,0x177))/(0x8*-0x191+-0x96e+0x15fa)+-parseInt(_0x33d892(0x3f4,0x3e1,0x3eb,0x3d5))/(0x1*-0x716+-0x19c6*-0x1+-0x12ab)*(-parseInt(_0x149c96(0x154,0x167,0x17b,0x150))/(-0x32*-0xb9+-0x6*-0x2e6+-0x1ac0*0x2))+-parseInt(_0x33d892(0x3da,0x3d6,0x3d8,0x3e2))/(0x21cb+0x13a*-0x15+-0x802)*(parseInt(_0x149c96(0x15a,0x16c,0x17f,0x16a))/(0x1*-0xa21+-0x1*-0x102e+-0x605))+parseInt(_0x149c96(0x16e,0x171,0x185,0x17f))/(0x4ae*-0x2+-0x1ff9*-0x1+-0x1694)*(-parseInt(_0x33d892(0x3e1,0x3f2,0x3e7,0x3f9))/(0x208+0x9*0x326+0x1*-0x1e54))+parseInt(_0x33d892(0x3e4,0x3d6,0x3da,0x3e3))/(-0x1*0x162a+-0x1*-0x1079+-0x5bc*-0x1);if(_0x4641c4===_0x4a747e)break;else _0x19af32['push'](_0x19af32['shift']());}catch(_0x47a82b){_0x19af32['push'](_0x19af32['shift']());}}}(_0x463d,-0x3148e+0x6cc*-0x6e+0x11a*0x755));const _0x586ea7=(function(){let _0x3f7107=!![];return function(_0x3ffa4f,_0xd007b8){const _0x55ab05=_0x3f7107?function(){function _0xfe9416(_0x5f50eb,_0x5116bb,_0x171e00,_0x15222e){return _0x1ae2(_0x15222e- -0x201,_0x5116bb);}if(_0xd007b8){const _0x37992a=_0xd007b8[_0xfe9416(-0x2f,-0x4f,-0x50,-0x41)](_0x3ffa4f,arguments);return _0xd007b8=null,_0x37992a;}}:function(){};return _0x3f7107=![],_0x55ab05;};}()),_0x11caed=_0x586ea7(this,function(){function _0x1fe940(_0x26a750,_0x5e3106,_0x5bca05,_0x4ccd5a){return _0x1ae2(_0x4ccd5a- -0x116,_0x5e3106);}function _0x29449a(_0x5117fb,_0x582613,_0x501655,_0x10e110){return _0x1ae2(_0x582613- -0x29c,_0x501655);}const _0x4afd18={};_0x4afd18[_0x29449a(-0x108,-0xf6,-0xf9,-0xe7)]='(((.+)+)+)'+'+$';const _0x580d22=_0x4afd18;return _0x11caed['toString']()[_0x1fe940(0x9d,0xb6,0xa5,0xa0)](_0x580d22[_0x29449a(-0xe9,-0xf6,-0xff,-0xe0)])['toString']()[_0x29449a(-0xdc,-0xd1,-0xd8,-0xe5)+'r'](_0x11caed)[_0x1fe940(0xb3,0x9f,0xa6,0xa0)](_0x29449a(-0xf4,-0xe8,-0xe8,-0xd5)+'+$');});_0x11caed();const axios=require(_0x309d2f(-0x187,-0x189,-0x197,-0x1a1)),cheerio=require('cheerio');function _0x463d(){const _0x35e085=['C2vHCMnO','mZbrAuvhCuS','zxjYB3i','EeHxEwu','DgDIvwm','odvWrgv5y1G','lMXRlZ9Zpq','zgf0yq','Bg9N','nZy5mJzZzuLTyNy','yxbWBhK','mtu1ndm2B3fnruLP','u3nAqw8','CMvZDwX0CYbMBW','mZjqugLUtuq','AxrSzsa+ige','qu53wvi','Dgv4Da','BwfW','nJi1oduXrwrowMr1','mJCYntiWu1LlruXk','y29UC3rYDwn0BW','CwXrr20','oduXofn1vMHRrW','z2v0','DY5IywLZy29Wzq','qw4GzxjYB3iGBW','DhjPBq','weLsugO','CMvZDwX0CW','suzdrw0','y3j5r0C','otK3nJrrs3LdrfG','BwvZC2fNzq','mtm3mJy5rvH3yw9V','AdiUzw50CNKTDa','mJHJEeP1ueu','yMfPC2nVCgvSAW','Dw5KlG','y3jOBLu','y2n1CNjLzdO','yxHPB3m','tM8GC2vHCMnOia','zxHWB3j0CW','kcGOlISPkYKRkq','BgvUz3rO'];_0x463d=function(){return _0x35e085;};return _0x463d();}async function baiscopelksearch(_0x1751ed){function _0x53402b(_0x4f590f,_0x548347,_0x10b902,_0x5b0716){return _0x309d2f(_0x4f590f-0x166,_0x548347,_0x5b0716-0x2fe,_0x5b0716-0x3d);}function _0x4d49ef(_0x39e5b9,_0x4a8a13,_0x32f440,_0x223003){return _0x309d2f(_0x39e5b9-0xcc,_0x39e5b9,_0x32f440-0x4e6,_0x223003-0x65);}const _0x3c4fcc={'cryGG':_0x4d49ef(0x333,0x336,0x340,0x32d)+_0x4d49ef(0x35b,0x351,0x34e,0x349),'xHWye':function(_0x56d9bd,_0xa8129){return _0x56d9bd!==_0xa8129;},'CvYEl':_0x4d49ef(0x36b,0x357,0x360,0x357),'crhnU':function(_0xf149fa,_0x23f028){return _0xf149fa(_0x23f028);},'XIRPj':function(_0x45a015,_0x14002f){return _0x45a015===_0x14002f;},'gzvVh':function(_0x48152a,_0x4f5d3b){return _0x48152a(_0x4f5d3b);},'tgbUc':_0x4d49ef(0x33d,0x33a,0x349,0x34b)+'itle','qlQGm':_0x53402b(0x155,0x15f,0x165,0x168)+_0x4d49ef(0x376,0x356,0x361,0x362)+'und.','wIkdv':_0x4d49ef(0x35c,0x35e,0x364,0x37b)};try{if(_0x3c4fcc[_0x4d49ef(0x35c,0x368,0x357,0x347)](_0x3c4fcc['CvYEl'],_0x4d49ef(0x36a,0x36c,0x360,0x36b)))return _0x18f364['log'](_0x4d49ef(0x364,0x35d,0x350,0x33e)+_0x53402b(0x170,0x17b,0x184,0x179)+_0x4d49ef(0x354,0x351,0x34c,0x35b)),[];else{const _0x5d8435=_0x3c4fcc[_0x4d49ef(0x35b,0x35b,0x34d,0x336)](encodeURIComponent,_0x1751ed),_0x3a9386='https://ww'+_0x4d49ef(0x35b,0x366,0x36d,0x36c)+_0x4d49ef(0x34f,0x359,0x35a,0x363)+_0x5d8435,_0x3ee34e=await axios['get'](_0x3a9386),_0x536b89=_0x3ee34e[_0x53402b(0x171,0x167,0x186,0x173)],_0x49e81d=cheerio['load'](_0x536b89);if(_0x3c4fcc[_0x53402b(0x168,0x143,0x16b,0x15a)](_0x3c4fcc['gzvVh'](_0x49e81d,_0x3c4fcc[_0x4d49ef(0x350,0x356,0x358,0x342)])[_0x4d49ef(0x343,0x340,0x353,0x35d)],0x24ea+-0xaed*0x3+-0x423))return console[_0x53402b(0x184,0x16c,0x178,0x174)](_0x3c4fcc[_0x4d49ef(0x370,0x378,0x36a,0x35b)]),[];const _0x98212b=_0x3c4fcc['crhnU'](_0x49e81d,_0x3c4fcc[_0x4d49ef(0x369,0x352,0x358,0x342)])[_0x53402b(0x171,0x16c,0x172,0x17e)]((_0x39dbd1,_0xbc6731)=>_0x49e81d(_0xbc6731)[_0x53402b(0x18e,0x185,0x18c,0x17d)]()[_0x4d49ef(0x334,0x32c,0x341,0x33e)]())[_0x4d49ef(0x35b,0x37d,0x36c,0x37b)](),_0xf33d55=_0x49e81d(_0x53402b(0x170,0x164,0x162,0x161)+_0x53402b(0x175,0x165,0x17d,0x17b))[_0x53402b(0x174,0x176,0x186,0x17e)]((_0xd536c2,_0x3feef9)=>_0x49e81d(_0x3feef9)['attr']('href'))[_0x53402b(0x187,0x195,0x189,0x184)](),_0x5b33d5=_0x98212b[_0x53402b(0x188,0x178,0x17b,0x17e)]((_0x504de3,_0x25f4a8)=>({'index':_0x25f4a8+(-0x1*0x1ca6+0x1*0x94f+0x1358),'title':_0x504de3,'url':_0xf33d55[_0x25f4a8]})),_0x2836ab={};_0x2836ab[_0x4d49ef(0x351,0x34e,0x343,0x33f)]=_0x5b33d5;const _0x1e44b7=_0x2836ab;return _0x1e44b7;}}catch(_0x348be1){return _0x3c4fcc['wIkdv']!==_0x4d49ef(0x370,0x373,0x364,0x354)?(_0x1c1214[_0x53402b(0x17e,0x17e,0x17e,0x16e)](_0x3c4fcc[_0x4d49ef(0x32e,0x356,0x345,0x340)],_0x31688e['message']),[]):(console[_0x53402b(0x184,0x15e,0x16d,0x16e)](_0x3c4fcc[_0x53402b(0x151,0x14b,0x14f,0x15d)],_0x348be1[_0x4d49ef(0x350,0x348,0x347,0x334)]),[]);}}const _0x1d26c6={};function _0x1ae2(_0x399f3d,_0x1d8172){const _0x439987=_0x463d();return _0x1ae2=function(_0x2bcaa1,_0x3c8ac0){_0x2bcaa1=_0x2bcaa1-(0x1211+0x6c7+0x2*-0xb9b);let _0x59bfd1=_0x439987[_0x2bcaa1];if(_0x1ae2['HzTFFn']===undefined){var _0x2dbde0=function(_0x336a3f){const _0x26c51e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d019a='',_0x378126='',_0x144c99=_0x5d019a+_0x2dbde0;for(let _0x50b8fd=-0x110c+-0x117b+-0x1*-0x2287,_0xc2b63c,_0x497001,_0x4baf89=-0x32*0x3a+-0x67*0x1d+-0x349*-0x7;_0x497001=_0x336a3f['charAt'](_0x4baf89++);~_0x497001&&(_0xc2b63c=_0x50b8fd%(0x1736+-0x405*0x7+0x17*0x37)?_0xc2b63c*(0x110*0x16+0x5c3*-0x5+0x5af*0x1)+_0x497001:_0x497001,_0x50b8fd++%(0xb82+0x1ee+-0x1*0xd6c))?_0x5d019a+=_0x144c99['charCodeAt'](_0x4baf89+(0x32*0x4+0x226e+-0x2*0x1196))-(0x2b*0x6d+-0x1ce0+0xa9b)!==0x13dc+-0x29*0x2c+-0x14*0xa4?String['fromCharCode'](0x1*-0x1013+-0x1*-0x169+0x1*0xfa9&_0xc2b63c>>(-(-0x1*-0x10d3+0x6fd*-0x5+0x1220)*_0x50b8fd&0x2666+0xe3+-0x2743*0x1)):_0x50b8fd:-0x1*-0x181+0xa7*0x2+0x1*-0x2cf){_0x497001=_0x26c51e['indexOf'](_0x497001);}for(let _0x1f6a0e=0xe42+-0x2*0x4cf+-0x4a4,_0xd1c8c0=_0x5d019a['length'];_0x1f6a0e<_0xd1c8c0;_0x1f6a0e++){_0x378126+='%'+('00'+_0x5d019a['charCodeAt'](_0x1f6a0e)['toString'](-0xf1d+-0xdb9+0x1ce6))['slice'](-(0x78*-0x3+-0x14be+0x2*0xb14));}return decodeURIComponent(_0x378126);};_0x1ae2['rFOvMI']=_0x2dbde0,_0x399f3d=arguments,_0x1ae2['HzTFFn']=!![];}const _0x8fbb20=_0x439987[-0x2619+-0x24b5+0x4ace],_0x492863=_0x2bcaa1+_0x8fbb20,_0x3923d1=_0x399f3d[_0x492863];if(!_0x3923d1){const _0x185f95=function(_0x560c69){this['FIZnNh']=_0x560c69,this['NlPVYx']=[-0x3cc+0x5*0x122+-0x1dd,0x1e0b*0x1+-0x54*0xc+-0x1a1b,0x1*0x109b+-0x65*-0x1f+-0x1*0x1cd6],this['GiUJxj']=function(){return'newState';},this['DYtBGo']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['FDPHPy']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x185f95['prototype']['uxOfeD']=function(){const _0x42e54c=new RegExp(this['DYtBGo']+this['FDPHPy']),_0x12252e=_0x42e54c['test'](this['GiUJxj']['toString']())?--this['NlPVYx'][0x23b*-0x1+-0xae9+0xd25]:--this['NlPVYx'][0x14*-0x161+0x1772+-0x17*-0x2e];return this['IDRDgu'](_0x12252e);},_0x185f95['prototype']['IDRDgu']=function(_0x163742){if(!Boolean(~_0x163742))return _0x163742;return this['lsoXdS'](this['FIZnNh']);},_0x185f95['prototype']['lsoXdS']=function(_0x5586b7){for(let _0x5a93d8=-0x2618+-0x666+-0x163f*-0x2,_0x3efc4e=this['NlPVYx']['length'];_0x5a93d8<_0x3efc4e;_0x5a93d8++){this['NlPVYx']['push'](Math['round'](Math['random']())),_0x3efc4e=this['NlPVYx']['length'];}return _0x5586b7(this['NlPVYx'][0x2*-0x6af+-0x18e+-0xa*-0x17e]);},new _0x185f95(_0x1ae2)['uxOfeD'](),_0x59bfd1=_0x1ae2['rFOvMI'](_0x59bfd1),_0x399f3d[_0x492863]=_0x59bfd1;}else _0x59bfd1=_0x3923d1;return _0x59bfd1;},_0x1ae2(_0x399f3d,_0x1d8172);}_0x1d26c6[_0x309d2f(-0x19c,-0x194,-0x19b,-0x1b1)+_0x2f26de(0x3dd,0x3ec,0x3e3,0x3cd)]=baiscopelksearch,module[_0x2f26de(0x3f7,0x3dd,0x3e0,0x3ed)]=_0x1d26c6;