mirror of
https://github.com/qist/tvbox.git
synced 2025-01-24 19:44:54 +08:00
1 line
23 KiB
JavaScript
1 line
23 KiB
JavaScript
const _0x40573b=_0x4519;(function(_0x2359d8,_0x1c7164){const _0x46a530=_0x4519,_0xef1b1a=_0x2359d8();while(!![]){try{const _0x2c8c47=-parseInt(_0x46a530(0x177))/0x1*(parseInt(_0x46a530(0x1b8))/0x2)+-parseInt(_0x46a530(0x162))/0x3+-parseInt(_0x46a530(0x19d))/0x4+-parseInt(_0x46a530(0x16f))/0x5*(parseInt(_0x46a530(0x152))/0x6)+parseInt(_0x46a530(0x1a3))/0x7*(parseInt(_0x46a530(0x190))/0x8)+-parseInt(_0x46a530(0x1c1))/0x9*(parseInt(_0x46a530(0x173))/0xa)+-parseInt(_0x46a530(0x1f4))/0xb*(-parseInt(_0x46a530(0x1ee))/0xc);if(_0x2c8c47===_0x1c7164)break;else _0xef1b1a['push'](_0xef1b1a['shift']());}catch(_0x725a92){_0xef1b1a['push'](_0xef1b1a['shift']());}}}(_0x283c,0x9e916));const _0x4d328b=(function(){let _0x10bcfe=!![];return function(_0x23098b,_0x53b493){const _0x1f7305=_0x10bcfe?function(){const _0x294921=_0x4519;if(_0x53b493){const _0x5b6497=_0x53b493[_0x294921(0x1ac)](_0x23098b,arguments);return _0x53b493=null,_0x5b6497;}}:function(){};return _0x10bcfe=![],_0x1f7305;};}()),_0x3e46f4=_0x4d328b(this,function(){const _0x79a5ac=_0x4519,_0x2949e2=function(){const _0x46254e=_0x4519;let _0x2b84bd;try{_0x2b84bd=Function('return\x20(fu'+_0x46254e(0x199)+(_0x46254e(0x16a)+'ctor(\x22retu'+_0x46254e(0x172)+'\x20)')+');')();}catch(_0x2a4ce){_0x2b84bd=window;}return _0x2b84bd;},_0x21e57d=_0x2949e2(),_0x34fe5d=_0x21e57d[_0x79a5ac(0x1d0)]=_0x21e57d[_0x79a5ac(0x1d0)]||{},_0x13c29c=[_0x79a5ac(0x195),_0x79a5ac(0x1f3),_0x79a5ac(0x194),_0x79a5ac(0x171),'exception',_0x79a5ac(0x150),'trace'];for(let _0x784ab7=0x0;_0x784ab7<_0x13c29c['length'];_0x784ab7++){const _0x210d2e=_0x4d328b[_0x79a5ac(0x14b)+'r'][_0x79a5ac(0x183)][_0x79a5ac(0x1c2)](_0x4d328b),_0x28d332=_0x13c29c[_0x784ab7],_0x39fde2=_0x34fe5d[_0x28d332]||_0x210d2e;_0x210d2e[_0x79a5ac(0x1f8)]=_0x4d328b[_0x79a5ac(0x1c2)](_0x4d328b),_0x210d2e[_0x79a5ac(0x1e6)]=_0x39fde2[_0x79a5ac(0x1e6)][_0x79a5ac(0x1c2)](_0x39fde2),_0x34fe5d[_0x28d332]=_0x210d2e;}});_0x3e46f4();function _0x4519(_0x40fae4,_0x5b8121){const _0x2dd42e=_0x283c();return _0x4519=function(_0x3e46f4,_0x4d328b){_0x3e46f4=_0x3e46f4-0x14b;let _0x5a60bd=_0x2dd42e[_0x3e46f4];return _0x5a60bd;},_0x4519(_0x40fae4,_0x5b8121);}import{_}from'assets://js/lib/cat.js';import*as _0x188bbf from'./utils.js';class Share{constructor(){const _0x4e2891=_0x4519;this['stoken']='',this['expired_at']='',this['expired_ty'+'pe']='',this['share_type']='',this[_0x4e2891(0x164)]='',this[_0x4e2891(0x1bb)]='',this[_0x4e2891(0x14c)]={},this[_0x4e2891(0x1b5)]='';}static[_0x40573b(0x1f1)](_0x23bf64){const _0xcdcbda=_0x40573b;if(_[_0xcdcbda(0x15a)](_0x23bf64))return new Share();let _0x1dac6d=JSON[_0xcdcbda(0x169)](_0x23bf64)[_0xcdcbda(0x198)],_0x3720b9=new Share();return _0x3720b9[_0xcdcbda(0x1ad)]=typeof _0x1dac6d['stoken']==_0xcdcbda(0x1d1)?'':_0x1dac6d['stoken'],_0x3720b9[_0xcdcbda(0x1d4)]=typeof _0x1dac6d['expired_at']==_0xcdcbda(0x1d1)?'':_0x1dac6d['expired_at'],_0x3720b9[_0xcdcbda(0x1b7)+'pe']=typeof _0x1dac6d[_0xcdcbda(0x1b7)+'pe']==_0xcdcbda(0x1d1)?'':_0x1dac6d[_0xcdcbda(0x1b7)+'pe'],_0x3720b9[_0xcdcbda(0x1fa)]=typeof _0x1dac6d['share_type']==_0xcdcbda(0x1d1)?'':_0x1dac6d[_0xcdcbda(0x1fa)],_0x3720b9[_0xcdcbda(0x164)]=typeof _0x1dac6d[_0xcdcbda(0x164)]=='undefined'?'':_0x1dac6d['subscribed'],_0x3720b9[_0xcdcbda(0x1bb)]=typeof _0x1dac6d[_0xcdcbda(0x1bb)]==_0xcdcbda(0x1d1)?'':_0x1dac6d[_0xcdcbda(0x1bb)],_0x3720b9[_0xcdcbda(0x14c)]=typeof _0x1dac6d['author']==_0xcdcbda(0x1d1)?'':_0x1dac6d[_0xcdcbda(0x14c)],_0x3720b9;}[_0x40573b(0x15b)](){const _0x36d6e7=_0x40573b;return _[_0x36d6e7(0x15a)](this[_0x36d6e7(0x1b5)])?'':this[_0x36d6e7(0x1b5)];}['getStoken'](){const _0x1172df=_0x40573b;return _['isEmpty'](this[_0x1172df(0x1ad)])?'':this[_0x1172df(0x1ad)];}['getAuthor'](){const _0x20b1dc=_0x40573b;return _['isEmpty'](this[_0x20b1dc(0x14c)])?{}:this[_0x20b1dc(0x14c)];}[_0x40573b(0x16d)](){const _0x3e68de=_0x40573b;return _[_0x3e68de(0x15a)](this['title'])?'':this[_0x3e68de(0x1bb)];}[_0x40573b(0x160)](_0xb9e801){const _0x406076=_0x40573b;return this[_0x406076(0x1b5)]=_0xb9e801,this;}}class Item{constructor(){const _0x3e2d85=_0x40573b;this[_0x3e2d85(0x1b2)+_0x3e2d85(0x1c3)]='',this['fid']='',this[_0x3e2d85(0x1b3)+'token']='',this[_0x3e2d85(0x1db)]='',this[_0x3e2d85(0x16e)]='',this[_0x3e2d85(0x1af)+'e']='',this[_0x3e2d85(0x15e)+'at']='',this[_0x3e2d85(0x1c6)+'at']='',this['obj_catego'+'ry']='',this[_0x3e2d85(0x1fb)]='',this['thumbnail']='',this['parent']='';}static['objectFrom'](_0x2fc6d7){const _0x9b3079=_0x40573b;let _0x4d903a=new Item();return _0x4d903a[_0x9b3079(0x1b2)+_0x9b3079(0x1c3)]=typeof _0x2fc6d7[_0x9b3079(0x1b2)+_0x9b3079(0x1c3)]==_0x9b3079(0x1d1)?'':_0x2fc6d7['big_thumbn'+_0x9b3079(0x1c3)],_0x4d903a[_0x9b3079(0x1a2)]=typeof _0x2fc6d7['fid']==_0x9b3079(0x1d1)?'':_0x2fc6d7['fid'],_0x4d903a['share_fid_'+_0x9b3079(0x19f)]=typeof _0x2fc6d7[_0x9b3079(0x1b3)+_0x9b3079(0x19f)]=='undefined'?'':_0x2fc6d7[_0x9b3079(0x1b3)+'token'],_0x4d903a[_0x9b3079(0x1db)]=typeof _0x2fc6d7[_0x9b3079(0x1db)]=='undefined'?'':_0x2fc6d7[_0x9b3079(0x1db)],_0x4d903a[_0x9b3079(0x16e)]=typeof _0x2fc6d7[_0x9b3079(0x16e)]=='undefined'?'':_0x2fc6d7[_0x9b3079(0x16e)],_0x4d903a[_0x9b3079(0x1af)+'e']=typeof _0x2fc6d7['format_typ'+'e']==_0x9b3079(0x1d1)?'':_0x2fc6d7[_0x9b3079(0x1af)+'e'],_0x4d903a[_0x9b3079(0x15e)+'at']=typeof _0x2fc6d7[_0x9b3079(0x15e)+'at']==_0x9b3079(0x1d1)?'':_0x2fc6d7[_0x9b3079(0x15e)+'at'],_0x4d903a[_0x9b3079(0x1c6)+'at']=typeof _0x2fc6d7['l_updated_'+'at']==_0x9b3079(0x1d1)?'':_0x2fc6d7['l_updated_'+'at'],_0x4d903a[_0x9b3079(0x193)+'ry']=typeof _0x2fc6d7['obj_catego'+'ry']==_0x9b3079(0x1d1)?'':_0x2fc6d7[_0x9b3079(0x193)+'ry'],_0x4d903a[_0x9b3079(0x1fb)]=typeof _0x2fc6d7[_0x9b3079(0x1fb)]==_0x9b3079(0x1d1)?'':_0x2fc6d7[_0x9b3079(0x1fb)],_0x4d903a['thumbnail']=typeof _0x2fc6d7[_0x9b3079(0x15f)]==_0x9b3079(0x1d1)?'':_0x2fc6d7[_0x9b3079(0x15f)],_0x4d903a;}[_0x40573b(0x15c)](){const _0x2426d0=_0x40573b;return _[_0x2426d0(0x15a)](this['fid'])?'':this[_0x2426d0(0x1a2)];}[_0x40573b(0x175)+_0x40573b(0x15d)](){const _0x1ae4aa=_0x40573b;return _['isEmpty'](this['share_fid_'+_0x1ae4aa(0x19f)])?'':this[_0x1ae4aa(0x1b3)+_0x1ae4aa(0x19f)];}['getName'](){const _0x12c993=_0x40573b;return _[_0x12c993(0x15a)](this[_0x12c993(0x1db)])?'':this[_0x12c993(0x1db)];}[_0x40573b(0x1a8)+'e'](){return this['file_type'];}['getExt'](){const _0x1f0693=_0x40573b;let _0x436b8f=this[_0x1f0693(0x1a6)](),_0x1366f6=_0x436b8f[_0x1f0693(0x14d)+'f']('.');if(_0x1366f6<=0x0)return'';let _0x27625c=_0x436b8f['substring'](_0x1366f6+0x1);return _0x27625c;}[_0x40573b(0x16b)+_0x40573b(0x17c)](){const _0x3c79ea=_0x40573b;return _[_0x3c79ea(0x15a)](this[_0x3c79ea(0x193)+'ry'])?'':this[_0x3c79ea(0x193)+'ry'];}[_0x40573b(0x1a9)](){const _0x138a9e=_0x40573b;return this[_0x138a9e(0x1fb)]==0x0?'':'['+_0x188bbf[_0x138a9e(0x1a9)](this[_0x138a9e(0x1fb)])+']';}[_0x40573b(0x1de)](){const _0x4ac168=_0x40573b;return _[_0x4ac168(0x15a)](this[_0x4ac168(0x1da)])?'':'['+this[_0x4ac168(0x1da)]+']';}[_0x40573b(0x1ea)](_0x1cbe30){return this['parent']=_0x1cbe30,this;}['getDisplay'+'Name'](){const _0x4d0467=_0x40573b;return this[_0x4d0467(0x1de)]()+'\x20'+this['getName']()+'\x20'+this[_0x4d0467(0x1a9)]();}[_0x40573b(0x19e)](_0x99466b){this['fid']=_0x99466b;}}class Sub{constructor(){const _0x2b614b=_0x40573b;this['url']='',this[_0x2b614b(0x191)]='',this['lang']='',this[_0x2b614b(0x1bf)]='';}static[_0x40573b(0x18f)](){return new Sub();}[_0x40573b(0x165)](_0x118b0f){const _0x5f4a96=_0x40573b;return this[_0x5f4a96(0x191)]=_0x118b0f,this;}[_0x40573b(0x163)](_0x5b4b4c){const _0x22d48f=_0x40573b;return this[_0x22d48f(0x168)]=_0x5b4b4c,this;}['setLang'](_0x9bfdcb){return this['lang']=_0x9bfdcb,this;}[_0x40573b(0x1f6)](_0xd52500){const _0x2d879a=_0x40573b;return this[_0x2d879a(0x1bf)]=_0xd52500,this;}[_0x40573b(0x1e8)](_0x2c761b){const _0x4ff9c8=_0x40573b;switch(_0x2c761b){case _0x4ff9c8(0x159):return this[_0x4ff9c8(0x1f6)](_0x4ff9c8(0x178));case _0x4ff9c8(0x189):case _0x4ff9c8(0x1cb):return this[_0x4ff9c8(0x1f6)](_0x4ff9c8(0x156));default:return this[_0x4ff9c8(0x1f6)](_0x4ff9c8(0x157)+_0x4ff9c8(0x192));}}}const UA='Mozilla/5.'+_0x40573b(0x19b)+'sh;\x20Intel\x20'+_0x40573b(0x14f)+_0x40573b(0x153)+'pleWebKit/'+_0x40573b(0x19c)+'TML,\x20like\x20'+_0x40573b(0x1ce)+'rk-cloud-d'+_0x40573b(0x1b0)+'\x20Chrome/10'+'0.0.4896.1'+_0x40573b(0x1b1)+_0x40573b(0x18e)+_0x40573b(0x1e5)+_0x40573b(0x1ff)+'537.36\x20Cha'+'nnel/pckk_'+_0x40573b(0x151);let cookie='',tempIds=[],share;async function setCookie(_0x345e4a){const _0x18dca3=_0x40573b;if(_0x345e4a[_0x18dca3(0x179)](_0x18dca3(0x166))){let _0x4a9148={};_0x4a9148[_0x18dca3(0x1d8)]=UA,cookie=await getString(_0x345e4a,_0x4a9148);}else cookie=_0x345e4a;}async function getString(_0x5a68c2,_0xc70d0){const _0x141179=_0x40573b,_0xa3d6a8={};_0xa3d6a8[_0x141179(0x17b)]=_0xc70d0;let _0x1c3ef7=await req(_0x5a68c2,_0xa3d6a8);return _0x1c3ef7[_0x141179(0x184)];}function getHeader(){const _0x182c70=_0x40573b;var _0x5c2fa5={};return _0x5c2fa5[_0x182c70(0x1bd)]=_0x182c70(0x1e1)+_0x182c70(0x188),_0x5c2fa5[_0x182c70(0x1d8)]=UA,_0x5c2fa5[_0x182c70(0x154)]=_0x182c70(0x1e1)+_0x182c70(0x188)+'/',_0x5c2fa5;}function getAuthHeader(){const _0x3d1bca=_0x40573b;var _0x5919fb={};return _0x5919fb[_0x3d1bca(0x1bd)]=_0x3d1bca(0x1e1)+_0x3d1bca(0x188),_0x5919fb[_0x3d1bca(0x1d8)]=UA,_0x5919fb[_0x3d1bca(0x154)]=_0x3d1bca(0x1e1)+_0x3d1bca(0x188)+'/',_0x5919fb[_0x3d1bca(0x1ed)]=cookie,_0x5919fb;}function _0x283c(){const _0x55d847=['file_name','ream','method','getParent','sleep','toLowerCas','https://pa','ve/task','toUpperCas','retry_inde','2-a038f7b7','toString','push','setExt','n/octet-st','parentFunc','rk.cn/','n/json,\x20te','Cookie','12VGncXq','status','Name','objectFrom','_size','warn','34057837EDKMet','ucpro&fr=p','setFormat','*/*','__proto__','oken','share_type','size','lang','ve/file/de','wnload?pr=','98\x20Safari/','constructo','author','lastIndexO','join','Mac\x20OS\x20X\x201','table','other_ch','36FYBlHf','0_15_7)\x20Ap','Referer','video','text/x-ssa','applicatio','save_as','vtt','isEmpty','getPwdId','getFid','dToken','l_created_','thumbnail','setPwdId','cpro&fr=pc','948957HODhVA','setUrl','subscribed','setName','http','ucpro','url','parse','{}.constru','getObjCate',',high,supe','getTitle','file_type','521210weIVew','fmp4,m3u8','error','rn\x20this\x22)(','25820iWTUmu','get','getShareFi','getStoken','2OQPZxT','text/vtt','startsWith','getAuthor','headers','gory','https://dr','asc,file_n','_sort','ve/file/do','$$$','ame:asc,up','prototype','content','split','filelist','_page','n.quark.cn','ass','file_type:','pdir_fid','ive-pc.qua','audio','n/18.3.5.1','create','328dETMJA','name','n/x-subrip','obj_catego','info','log','indexOf','1/clouddri','data','nction()\x20','pro&fr=pc','0\x20(Macinto','537.36\x20(KH','1841860uknkec','setFid','token','ave?pr=ucp','xt/plain,\x20','fid','137263ZuFQTF','https','_total','getName','getDisplay','getFileTyp','getSize','task_id','@@@','apply','stoken','esc','format_typ','rive/3.0.1','60\x20Electro','big_thumbn','share_fid_','harepage/d','pwd_id','harepage/t','expired_ty','916304wYbgNl','Accept','ve/share/s','title','fid_token_','origin','video_list','format','stringify','3249WYCFpI','bind','ail','save_as_to','removeExt','l_updated_','post','debug','unshift','subt','ssa','getExt','夸克云盘','Gecko)\x20qua','length','console','undefined','metadata','normal,low','expired_at','fids','resolution','dated_at:d','User-Agent','p_fids','parent'];_0x283c=function(){return _0x55d847;};return _0x283c();}function buildUrlParams(_0x164346){let _0x41a872='';for(var _0x328000 in _0x164346){_0x41a872+=_0x328000+'='+_0x164346[_0x328000]+'&';}return _0x41a872;}async function get(_0x16ec44,_0x1a1805){const _0x3e0aaa=_0x40573b;_0x16ec44=_0x16ec44[_0x3e0aaa(0x179)]('https')?_0x16ec44:_0x3e0aaa(0x17d)+_0x3e0aaa(0x18c)+'rk.cn/'+_0x16ec44,_0x16ec44=_0x16ec44+'?'+buildUrlParams(_0x1a1805);let _0xbe5d3f=await getJson(_0x16ec44,getHeader());return _0xbe5d3f[_0x3e0aaa(0x184)];}async function post(_0x33a7c2,_0xc92ca3){const _0x4b3617=_0x40573b;_0x33a7c2=_0x33a7c2[_0x4b3617(0x179)](_0x4b3617(0x1a4))?_0x33a7c2:_0x4b3617(0x17d)+_0x4b3617(0x18c)+_0x4b3617(0x1eb)+_0x33a7c2;let _0xc7c555=await postJson(_0x33a7c2,_0xc92ca3,getHeader());return _0xc7c555['content'];}async function getJson(_0x16f24e,_0x4abc4b){const _0x598908=_0x40573b;_0x4abc4b[_0x598908(0x1b9)]=_0x598908(0x157)+_0x598908(0x1ec)+_0x598908(0x1a1)+_0x598908(0x1f7);const _0x219ca5={};_0x219ca5[_0x598908(0x17b)]=_0x4abc4b,_0x219ca5['method']=_0x598908(0x174),_0x219ca5[_0x598908(0x198)]=null;let _0x4a4135=await req(_0x16f24e,_0x219ca5);return _0x4a4135;}async function postJson(_0x1f5486,_0xe0523d,_0x2a2f3a){const _0x293573=_0x40573b;_0x2a2f3a[_0x293573(0x1b9)]=_0x293573(0x157)+_0x293573(0x1ec)+'xt/plain,\x20'+_0x293573(0x1f7);const _0x2c36dc={};_0x2c36dc[_0x293573(0x17b)]=_0x2a2f3a,_0x2c36dc[_0x293573(0x1dd)]=_0x293573(0x1c7),_0x2c36dc['data']=_0xe0523d;let _0x145ba1=await req(_0x1f5486,_0x2c36dc);return _0x145ba1;}async function authPost(_0x550abd,_0x41ba7d){const _0xec02cf=_0x40573b;_0x550abd=_0x550abd[_0xec02cf(0x179)](_0xec02cf(0x1a4))?_0x550abd:_0xec02cf(0x17d)+_0xec02cf(0x18c)+'rk.cn/'+_0x550abd;let _0xc18ded=await postJson(_0x550abd,_0x41ba7d,getAuthHeader());return _0xc18ded[_0xec02cf(0x184)];}async function authGet(_0x10f7b6,_0x508b0f){const _0x485577=_0x40573b;_0x10f7b6=_0x10f7b6[_0x485577(0x179)](_0x485577(0x1a4))?_0x10f7b6:_0x485577(0x17d)+_0x485577(0x18c)+_0x485577(0x1eb)+_0x10f7b6,_0x10f7b6=_0x10f7b6+'?'+buildUrlParams(_0x508b0f);let _0x9a0245=await getJson(_0x10f7b6,getAuthHeader());return _0x9a0245[_0x485577(0x184)];}async function refreshShareToken(_0x3f6fc7){const _0x279fc5=_0x40573b;let _0x562558={};_0x562558[_0x279fc5(0x1b5)]=_0x3f6fc7,_0x562558['passcode']='';let _0x246b8a=await post(_0x279fc5(0x197)+_0x279fc5(0x1ba)+_0x279fc5(0x1b6)+_0x279fc5(0x1f9),_0x562558);share=Share[_0x279fc5(0x1f1)](_0x246b8a)['setPwdId'](_0x3f6fc7);}async function getVod(_0xf836e1,_0x5a723c){const _0x23c1f9=_0x40573b;await refreshShareToken(_0xf836e1);let _0x349242=[],_0x4d26b3=[],_0x5cf7b2=new Item();_0x5cf7b2[_0x23c1f9(0x19e)]('0'),await listFiles(_0xf836e1,_0x5cf7b2,_0x349242,_0x4d26b3);let _0x130c0d=['原画','普画'],_0x397775=[],_0x3ea6f8=[];for(var _0x4ae25e of _0x349242)_0x397775['push'](_0x4ae25e[_0x23c1f9(0x1a7)+_0x23c1f9(0x1f0)]()+'$'+_0xf836e1+'+'+_0x4ae25e[_0x23c1f9(0x15c)]()+'+'+_0x4ae25e['getShareFi'+_0x23c1f9(0x15d)]()+findSubs(_0x4ae25e[_0x23c1f9(0x1a6)](),_0x4d26b3));for(var _0x1f9ee3=0x0;_0x1f9ee3<_0x130c0d[_0x23c1f9(0x1cf)];_0x1f9ee3++)_0x3ea6f8[_0x23c1f9(0x1e7)](_0x397775['join']('#'));let _0x3a7795=share[_0x23c1f9(0x17a)](),_0x370385={'vod_id':_0x5a723c,'vod_content':_0x5a723c,'vod_pic':_0x3a7795['avatar_url'],'vod_name':share['getTitle'](),'vod_play_url':_0x3ea6f8[_0x23c1f9(0x14e)](_0x23c1f9(0x181)),'vod_play_from':_0x130c0d[_0x23c1f9(0x14e)](_0x23c1f9(0x181)),'type_name':_0x23c1f9(0x1cd),'vod_year':'','vod_area':'','vod_remarks':'','vod_actor':'','vod_director':''};return _0x370385;}async function listFiles(_0x143814,_0x253af2,_0x4805ed,_0x52e545){return await listFilesWithPage(_0x143814,_0x253af2,_0x4805ed,_0x52e545,0x1);}async function listFilesWithPage(_0x12d718,_0xcaae8a,_0x2c25ab,_0x232658,_0x122155){const _0x23e879=_0x40573b;let _0x4e9674=[],_0x30d8af={};_0x30d8af[_0x23e879(0x1b5)]=_0x12d718,_0x30d8af['stoken']=encodeURIComponent(share[_0x23e879(0x176)]()),_0x30d8af[_0x23e879(0x18b)]=_0xcaae8a[_0x23e879(0x15c)](),_0x30d8af['pr']=_0x23e879(0x167),_0x30d8af['fr']='pc',_0x30d8af['force']='0',_0x30d8af[_0x23e879(0x187)]=_0x122155,_0x30d8af[_0x23e879(0x1f2)]=0x32,_0x30d8af[_0x23e879(0x17f)]=_0x23e879(0x18a)+_0x23e879(0x17e)+_0x23e879(0x182)+_0x23e879(0x1d7)+_0x23e879(0x1ae);let _0x2429c8=await get(_0x23e879(0x197)+'ve/share/s'+_0x23e879(0x1b4)+'etail',_0x30d8af),_0x34b08c=JSON[_0x23e879(0x169)](_0x2429c8),_0x5bc408=_0x34b08c[_0x23e879(0x198)]['list'],_0x17830c=_0x34b08c[_0x23e879(0x1d2)];for(var _0x2e7ca3 of _0x5bc408){let _0x1a3716=Item['objectFrom'](_0x2e7ca3);if(_0x1a3716[_0x23e879(0x1a8)+'e']()==0x0)_0x4e9674[_0x23e879(0x1e7)](_0x1a3716);else{if(_0x1a3716[_0x23e879(0x16b)+_0x23e879(0x17c)]()==_0x23e879(0x155)||_0x1a3716[_0x23e879(0x16b)+_0x23e879(0x17c)]()==_0x23e879(0x18d))_0x2c25ab[_0x23e879(0x1e7)](_0x1a3716[_0x23e879(0x1ea)](_0xcaae8a[_0x23e879(0x1a6)]()));else _0x188bbf['isSub'](_0x1a3716[_0x23e879(0x1cc)]())&&_0x232658[_0x23e879(0x1e7)](_0x1a3716);}}let _0x1dd621=_0x17830c[_0x23e879(0x1a5)],_0x5a3ce1=_0x17830c[_0x23e879(0x187)]*_0x17830c[_0x23e879(0x1f2)];_0x1dd621>_0x5a3ce1&&await listFilesWithPage(_0x12d718,_0xcaae8a,_0x2c25ab,_0x232658,_0x17830c[_0x23e879(0x187)]+0x1);for(var _0x27c7df of _0x4e9674){await listFiles(_0x12d718,_0x27c7df,_0x2c25ab,_0x232658);}}function pair(_0x10e4fc,_0x3d2693,_0x41344a){const _0x45fe94=_0x40573b;for(var _0x361137 of _0x3d2693){var _0x495cb5=_0x188bbf[_0x45fe94(0x1c5)](_0x361137['getName']())[_0x45fe94(0x1e0)+'e']();if(_0x10e4fc['indexOf'](_0x495cb5)>-0x1||_0x495cb5[_0x45fe94(0x196)](_0x10e4fc)>-0x1)_0x41344a['push'](_0x361137);}}function findSubs(_0x984ab0,_0x371905){const _0x217223=_0x40573b;let _0xa6fa85=[];pair(_0x188bbf['removeExt'](_0x984ab0)[_0x217223(0x1e0)+'e'](),_0x371905,_0xa6fa85);if(_0xa6fa85[_0x217223(0x1cf)]==0x0)for(var _0x120d02 of _0x371905){_0xa6fa85['push'](_0x120d02);}let _0x38cdf3='';for(var _0x1fc970 of _0xa6fa85){_0x38cdf3+='+'+_0x188bbf[_0x217223(0x1c5)](_0x1fc970[_0x217223(0x1a6)]())+'@@@'+_0x1fc970[_0x217223(0x1cc)]()+_0x217223(0x1ab)+_0x1fc970[_0x217223(0x15c)]()+_0x217223(0x1ab)+_0x1fc970[_0x217223(0x175)+'dToken']();}return _0x38cdf3;}async function getSubs(_0x1e3821){const _0x4dab5e=_0x40573b;let _0x3fed73=[];for(var _0x5d7a8a of _0x1e3821){if(!(_0x5d7a8a[_0x4dab5e(0x196)]('@@@')>-0x1))continue;let _0x44a193=_0x5d7a8a[_0x4dab5e(0x185)](_0x4dab5e(0x1ab)),_0x4efb85=_0x44a193[0x0],_0x9999b5=_0x44a193[0x1],_0x1cb004=_0x44a193[0x2],_0x83820a=_0x44a193[0x3],_0x10c0e9=await getDownloadUrl(_0x1e3821[0x0],_0x1cb004,_0x83820a);_0x3fed73[_0x4dab5e(0x1e7)](Sub[_0x4dab5e(0x18f)]()[_0x4dab5e(0x165)](_0x4efb85)['setExt'](_0x9999b5)[_0x4dab5e(0x163)](_0x10c0e9));}return _0x3fed73;}async function getDownloadUrl(_0x55207e,_0xe3ef51,_0x365eaf){const _0x293b51=_0x40573b;let _0x4be771=await copy(_0x55207e,_0xe3ef51,_0x365eaf);tempIds['unshift'](_0x4be771);let _0x1d2431='1/clouddri'+_0x293b51(0x180)+_0x293b51(0x1fe)+_0x293b51(0x1f5)+'c',_0x320a63={};_0x320a63[_0x293b51(0x1d5)]=[_0x4be771];let _0x37c3e4=await authPost(_0x1d2431,_0x320a63),_0x5d68a3=JSON[_0x293b51(0x169)](_0x37c3e4)['data'];return await deleteAll(),_0x5d68a3[0x0]['download_u'+'rl'];}async function getVideoPreviewPlayInfo(_0x57705b,_0x5dcb6b,_0x830025){const _0xc15880=_0x40573b;let _0x2c6500=await copy(_0x57705b,_0x5dcb6b,_0x830025);tempIds[_0xc15880(0x1c9)](_0x2c6500);let _0x34659e=_0xc15880(0x197)+'ve/file/v2'+'/play?pr=u'+_0xc15880(0x161),_0x3512f0={};_0x3512f0[_0xc15880(0x1a2)]=_0x2c6500,_0x3512f0[_0xc15880(0x1d6)+'s']=_0xc15880(0x1d3)+_0xc15880(0x16c)+'r,2k,4k',_0x3512f0['supports']=_0xc15880(0x170);let _0x57c45d=await authPost(_0x34659e,_0x3512f0),_0x37e748=JSON['parse'](_0x57c45d)[_0xc15880(0x198)];await deleteAll();let _0x268d29=_0x37e748[_0xc15880(0x1be)];return _0x268d29;}async function playerContent(_0x2720e7){const _0x1d4199=_0x40573b;try{let _0x313c0c=await getDownloadUrl(_0x2720e7[0x0],_0x2720e7[0x1],_0x2720e7[0x2]),_0x584390=await getSubs(_0x2720e7),_0xd9239b=[];for(var _0x47f853 of _0x584390){const _0x4023c6={};_0x4023c6['url']=_0x47f853[_0x1d4199(0x168)],_0x4023c6[_0x1d4199(0x1fc)]=_0x47f853['lang'],_0x4023c6['title']=_0x47f853[_0x1d4199(0x191)],_0xd9239b[_0x1d4199(0x1e7)](_0x4023c6);}const _0x43da56={};return _0x43da56[_0x1d4199(0x1ca)]=_0xd9239b,JSON[_0x1d4199(0x1c0)]({'parse':0x0,'url':_0x313c0c,'header':getAuthHeader(),'extra':_0x43da56,'format':'applicatio'+_0x1d4199(0x1e9)+'ream','subs':_0x584390});}catch(_0x25bd57){console['debug'](_0x25bd57);}}async function playerContentByFlag(_0x2807ef,_0x4d84fe){const _0x3786ca=_0x40573b;try{let _0x43501d=await getVideoPreviewPlayInfo(_0x2807ef[0x0],_0x2807ef[0x1],_0x2807ef[0x2]),_0x51a5d3=getPreviewUrl(_0x43501d,_0x4d84fe),_0x1455e0=await getSubs(_0x2807ef),_0x483bfb=getSubsByPlayInfo(_0x43501d);for(var _0x369a98 of _0x483bfb){_0x1455e0[_0x3786ca(0x1e7)](_0x369a98);}let _0x3b764a=[];for(var _0x3d2272 of _0x1455e0){const _0x23e38d={};_0x23e38d['url']=_0x3d2272[_0x3786ca(0x168)],_0x23e38d[_0x3786ca(0x1fc)]=_0x3d2272[_0x3786ca(0x1fc)],_0x23e38d['title']=_0x3d2272[_0x3786ca(0x191)],_0x3b764a[_0x3786ca(0x1e7)](_0x23e38d);}const _0x44924e={};return _0x44924e[_0x3786ca(0x1ca)]=_0x3b764a,JSON[_0x3786ca(0x1c0)]({'parse':0x0,'url':_0x51a5d3,'header':getAuthHeader(),'extra':_0x44924e,'format':_0x3786ca(0x157)+_0x3786ca(0x1e9)+_0x3786ca(0x1dc),'subs':_0x1455e0});}catch(_0x234893){console[_0x3786ca(0x1c8)](_0x234893);}}function getPreviewUrl(_0x50a431,_0x3a6ee6){const _0x52fdeb=_0x40573b;let _0x507760=[];for(var _0x172861 of _0x50a431){if(typeof _0x172861['video_info']=='undefined')continue;_0x507760['push'](_0x172861[_0x52fdeb(0x1d6)][_0x52fdeb(0x1e3)+'e']()),_0x507760[_0x52fdeb(0x1e7)](_0x172861['video_info'][_0x52fdeb(0x168)]);}return _0x507760;}function getSubsByPlayInfo(_0x493967){return[];}async function copy(_0x52173e,_0x4af194,_0x1aada5){const _0x144af6=_0x40573b;let _0x1879be={};_0x1879be['fid_list']=[_0x4af194],_0x1879be[_0x144af6(0x1bc)+'list']=[_0x1aada5],_0x1879be['pdir_fid']='0',_0x1879be['to_pdir_fi'+'d']='0',_0x1879be['pwd_id']=_0x52173e,_0x1879be['stoken']=share[_0x144af6(0x176)]();let _0x2b2018=await authPost('1/clouddri'+_0x144af6(0x1ba)+'harepage/s'+_0x144af6(0x1a0)+'ro&fr=pc',_0x1879be),_0x1b604f=JSON['parse'](_0x2b2018)[_0x144af6(0x198)],_0x1dcced=_0x1b604f['task_id'],_0x3974d6=getTaskSaveFidResult(_0x1dcced);return _0x3974d6;}async function getTaskSaveFidResult(_0x2c9635,_0x3f9c9d){const _0x4a1ca8=_0x40573b;_0x3f9c9d=_0x3f9c9d||0x0;let _0x3d14c0={};_0x3d14c0['pr']='ucpro',_0x3d14c0['fr']='pc',_0x3d14c0[_0x4a1ca8(0x1aa)]=_0x2c9635,_0x3d14c0[_0x4a1ca8(0x1e4)+'x']=_0x3f9c9d;let _0x79dee5=await authGet('1/clouddri'+_0x4a1ca8(0x1e2),_0x3d14c0),_0x15e18b=JSON[_0x4a1ca8(0x169)](_0x79dee5)[_0x4a1ca8(0x198)];if(typeof _0x15e18b[_0x4a1ca8(0x158)]==_0x4a1ca8(0x1d1)||typeof _0x15e18b[_0x4a1ca8(0x158)]['save_as_to'+'p_fids']=='undefined'||_0x15e18b[_0x4a1ca8(0x158)][_0x4a1ca8(0x1c4)+_0x4a1ca8(0x1d9)][_0x4a1ca8(0x1cf)]==0x0){_0x3f9c9d++;if(_0x3f9c9d>0xa)return'';return _0x188bbf['sleep'](0x3e8),getTaskSaveFidResult(_0x2c9635,_0x3f9c9d);}return _0x15e18b[_0x4a1ca8(0x158)][_0x4a1ca8(0x1c4)+_0x4a1ca8(0x1d9)][0x0];}function deleteAll(){let _0x316e96=tempIds;_0x316e96['forEach']((_0x3ba81c,_0xaf9395)=>{let _0x4e51da=deleteOne(_0x3ba81c);if(_0x4e51da){let _0x418df8=tempIds['indexOf'](_0x3ba81c);_0x418df8>=0x0&&tempIds['splice'](_0x418df8,0x1);}});}async function getTaskDeleteResult(_0x5ddeac,_0x1e1865){const _0x4009e7=_0x40573b;_0x1e1865=_0x1e1865||0x0;let _0x4211ce={};_0x4211ce['pr']=_0x4009e7(0x167),_0x4211ce['fr']='pc',_0x4211ce[_0x4009e7(0x1aa)]=_0x5ddeac,_0x4211ce[_0x4009e7(0x1e4)+'x']=_0x1e1865;let _0x3658cf=await authGet(_0x4009e7(0x197)+_0x4009e7(0x1e2),_0x4211ce),_0x15eb97=JSON[_0x4009e7(0x169)](_0x3658cf)[_0x4009e7(0x198)];if(_0x15eb97[_0x4009e7(0x1ef)]!=0x2){_0x1e1865++;if(_0x1e1865>0xa)return![];return _0x188bbf[_0x4009e7(0x1df)](0x3e8),getTaskDeleteResult(_0x5ddeac,_0x1e1865);}return!![];}async function deleteOne(_0x4bab95){const _0x7a0c24=_0x40573b;let _0x46d6da={};_0x46d6da['action_typ'+'e']=0x2,_0x46d6da[_0x7a0c24(0x186)]=[_0x4bab95],_0x46d6da['exclude_fi'+'ds']=[];let _0xfa89b9=await authPost('1/clouddri'+_0x7a0c24(0x1fd)+'lete?pr=uc'+_0x7a0c24(0x19a),_0x46d6da),_0x5e1031=JSON[_0x7a0c24(0x169)](_0xfa89b9)[_0x7a0c24(0x198)],_0x483b81=_0x5e1031[_0x7a0c24(0x1aa)],_0x1d071b=getTaskDeleteResult(_0x483b81);return _0x1d071b;}export{setCookie,getVod,playerContent,playerContentByFlag}; |