mirror of
https://github.com/alantang1977/X.git
synced 2024-12-27 21:53:09 +02:00
1 line
No EOL
4.4 KiB
JavaScript
1 line
No EOL
4.4 KiB
JavaScript
(function(_0x359b31,_0x3695c5){const _0x220248=_0x1ae5,_0x13898b=_0x359b31();while(!![]){try{const _0x27a32d=parseInt(_0x220248(0x14a))/0x1*(-parseInt(_0x220248(0x164))/0x2)+parseInt(_0x220248(0x145))/0x3*(-parseInt(_0x220248(0x152))/0x4)+parseInt(_0x220248(0x153))/0x5+-parseInt(_0x220248(0x15c))/0x6+parseInt(_0x220248(0x163))/0x7+parseInt(_0x220248(0x16b))/0x8+parseInt(_0x220248(0x14f))/0x9;if(_0x27a32d===_0x3695c5)break;else _0x13898b['push'](_0x13898b['shift']());}catch(_0x14a2ca){_0x13898b['push'](_0x13898b['shift']());}}}(_0x19e8,0xa700e));const _0x5dbe7f=(function(){let _0x1aa958=!![];return function(_0xa7e038,_0x559f45){const _0x2dd58a=_0x1aa958?function(){const _0x160c31=_0x1ae5;if(_0x559f45){const _0x173107=_0x559f45[_0x160c31(0x151)](_0xa7e038,arguments);return _0x559f45=null,_0x173107;}}:function(){};return _0x1aa958=![],_0x2dd58a;};}()),_0x359461=_0x5dbe7f(this,function(){const _0x2a70f0=_0x1ae5;let _0xe04f19;try{const _0x46a3e8=Function(_0x2a70f0(0x168)+_0x2a70f0(0x162)+(_0x2a70f0(0x15f)+'ctor(\x22retu'+_0x2a70f0(0x166)+'\x20)')+');');_0xe04f19=_0x46a3e8();}catch(_0x3aad17){_0xe04f19=window;}const _0x31c034=_0xe04f19[_0x2a70f0(0x146)]=_0xe04f19['console']||{},_0x3032b7=[_0x2a70f0(0x156),_0x2a70f0(0x15d),'info',_0x2a70f0(0x159),_0x2a70f0(0x154),_0x2a70f0(0x147),_0x2a70f0(0x15a)];for(let _0x1e6b31=0x0;_0x1e6b31<_0x3032b7[_0x2a70f0(0x165)];_0x1e6b31++){const _0xf70707=_0x5dbe7f[_0x2a70f0(0x157)+'r'][_0x2a70f0(0x16c)]['bind'](_0x5dbe7f),_0x56efad=_0x3032b7[_0x1e6b31],_0x303fb1=_0x31c034[_0x56efad]||_0xf70707;_0xf70707['__proto__']=_0x5dbe7f[_0x2a70f0(0x148)](_0x5dbe7f),_0xf70707['toString']=_0x303fb1[_0x2a70f0(0x167)][_0x2a70f0(0x148)](_0x303fb1),_0x31c034[_0x56efad]=_0xf70707;}});_0x359461();import{_}from'assets://js/lib/cat.js';function _0x19e8(){const _0x1b9397=['push','2360334tIiGHk','warn','stringify','{}.constru','-----playC','$$$','nction()\x20','6397664XJqBSe','4HcEVHm','length','rn\x20this\x22)(','toString','return\x20(fu','match','debug','5782272AUdxVR','prototype','24342TBLGdT','console','table','bind','vod_play_u','4717pTzAeF','---','split','普画#','ontent----','124722ZsnLze','isEmpty','apply','536BzAWkd','2617755OTVeaB','exception','join','log','constructo','原画#','error','trace'];_0x19e8=function(){return _0x1b9397;};return _0x19e8();}import{initSome,setToken,getVod,playerContent,playerContentByFlag}from'./ali_api.js';function _0x1ae5(_0x52128e,_0x40b9ab){const _0x1c7e45=_0x19e8();return _0x1ae5=function(_0x359461,_0x5dbe7f){_0x359461=_0x359461-0x145;let _0x1a2801=_0x1c7e45[_0x359461];return _0x1a2801;},_0x1ae5(_0x52128e,_0x40b9ab);}const aliPattern=/www.aliyundrive.com\/s\/([^\/]+)(\/folder\/([^\/]+))?/;async function initAli(_0x4dc1a5){await initSome(),setToken(_0x4dc1a5);}async function detailContent(_0x19f27d){const _0x72f65f=_0x1ae5;let _0x143d76=_0x19f27d[_0x72f65f(0x169)](aliPattern),_0x2f2913=await parseVod(_0x143d76,_0x19f27d);const _0x38ba08={};_0x38ba08['list']=[_0x2f2913];let _0x22c73e=JSON[_0x72f65f(0x15e)](_0x38ba08);return _0x22c73e;}async function parseVod(_0x3dd52c,_0x45952f){const _0x97bdc2=_0x1ae5;if(_[_0x97bdc2(0x150)](_0x3dd52c))return{};let _0x1969d0=_0x3dd52c[0x1],_0x1aaa60=_0x3dd52c['length']>0x3?_0x3dd52c[0x3]:'';return await getVod(_0x1969d0,_0x45952f,_0x1aaa60);}async function playContent(_0x190f5f,_0x25a278,_0x15ec69){const _0x4e6914=_0x1ae5;let _0x587743=_0x25a278[_0x4e6914(0x14c)]('+');_0x190f5f=_0x190f5f[_0x4e6914(0x14c)]('#')[0x0];let _0x15dba1=_0x190f5f=='原画'?await playerContent(_0x587743):await playerContentByFlag(_0x587743,_0x190f5f);return console[_0x4e6914(0x16a)](_0x4e6914(0x160)+_0x4e6914(0x14e)+_0x4e6914(0x14b)),console['debug'](_0x15dba1),_0x15dba1;}function detailContentVodPlayFrom(_0x5542c5){const _0x1a811f=_0x1ae5;let _0x5265fa=[];if(_0x5542c5[_0x1a811f(0x165)]<0x2)return['原画','普画']['join']('$$$');for(let _0x416861=0x1;_0x416861<=_0x5542c5[_0x1a811f(0x165)];_0x416861++){_0x5265fa[_0x1a811f(0x15b)](_0x1a811f(0x158)+_0x416861),_0x5265fa[_0x1a811f(0x15b)](_0x1a811f(0x14d)+_0x416861);}return _0x5265fa[_0x1a811f(0x155)](_0x1a811f(0x161));}async function detailContentVodPlayUrl(_0x3937b9){const _0x114f7e=_0x1ae5;let _0x281ecf=[];for(var _0x2108f6 of _0x3937b9){let _0x250d24=_0x2108f6['match'](aliPattern);if(!_[_0x114f7e(0x150)](_0x250d24)){let _0x2c17c1=await parseVod(_0x250d24,_0x2108f6);_0x281ecf['push'](_0x2c17c1[_0x114f7e(0x149)+'rl']);}}return _0x281ecf['join'](_0x114f7e(0x161));}export{initAli,detailContent,playContent,detailContentVodPlayFrom,detailContentVodPlayUrl}; |