@@ -339,22 +339,30 @@ var rule = {
339339 let downUrl = ''
340340 if ( flag . startsWith ( 'Quark-' ) ) {
341341 log ( "夸克网盘解析开始" )
342- const down = await Quark . getDownload ( ids [ 0 ] , ids [ 1 ] , ids [ 2 ] , ids [ 3 ] , true ) ;
343342 const headers = {
344343 // 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 QuarkPC/4.5.5.535 quark-cloud-drive/2.5.40 Channel/pckk_other_ch',
345344 // 'origin': 'https://pan.quark.cn',
346345 // 'referer': 'https://pan.quark.cn/',
347346 'Cookie' : ENV . get ( 'quark_cookie' )
348347 } ;
348+ //无限不转存
349+ const link = await Quark . getUrl ( ids [ 0 ] , ids [ 1 ] , ids [ 2 ] , ids [ 3 ] ) ;
350+ link . forEach ( item => {
351+ if ( item !== undefined ) {
352+ urls . push ( "无限" + item . name , item . url + "#isVideo=true##fastPlayMode##threads=20#" )
353+ urls . push ( "无限猫" + item . name , `http://127.0.0.1:5575/proxy?thread=${ ENV . get ( 'thread' ) || 6 } &chunkSize=256&url=` + encodeURIComponent ( item . url ) + '&header=' + encodeURIComponent ( JSON . stringify ( headers ) ) ) ;
354+ }
355+ } ) ;
356+ const down = await Quark . getDownload ( ids [ 0 ] , ids [ 1 ] , ids [ 2 ] , ids [ 3 ] , true ) ;
349357 down . forEach ( ( t ) => {
350- if ( t . url !== undefined ) {
351- urls . push ( "猫" + t . name , `http://127.0.0.1:5575/proxy?thread=${ ENV . get ( 'thread' ) || 6 } &chunkSize=256&url=` + encodeURIComponent ( t . url ) ) ;
352- urls . push ( t . name , t . url + "#isVideo=true##fastPlayMode##threads=20#" )
358+ if ( t . url !== undefined ) {
359+ urls . push ( "猫" + t . name , `http://127.0.0.1:5575/proxy?thread=${ ENV . get ( 'thread' ) || 6 } &chunkSize=256&url=` + encodeURIComponent ( t . url ) ) ;
360+ urls . push ( t . name , t . url + "#isVideo=true##fastPlayMode##threads=20#" )
353361 }
354362 } ) ;
355363 const transcoding = ( await Quark . getLiveTranscoding ( ids [ 0 ] , ids [ 1 ] , ids [ 2 ] , ids [ 3 ] ) ) . filter ( ( t ) => t . accessable ) ;
356364 transcoding . forEach ( ( t ) => {
357- urls . push ( t . resolution === 'low' ? "流畅" : t . resolution === 'high' ? "高清" : t . resolution === 'super' ? "超清" : t . resolution , t . video_info . url + "#isVideo=true##fastPlayMode##threads=20#" )
365+ urls . push ( t . resolution === 'low' ? "流畅" : t . resolution === 'high' ? "高清" : t . resolution === 'super' ? "超清" : t . resolution , t . video_info . url + "#isVideo=true##fastPlayMode##threads=20#" )
358366 } ) ;
359367 // urls.push("原画", down.download_url + '#fastPlayMode##threads=10#');
360368 // urls.push("原代服", mediaProxyUrl + `?thread=${ENV.get('thread') || 6}&form=urlcode&randUa=1&url=` + encodeURIComponent(down.download_url) + '&header=' + encodeURIComponent(JSON.stringify(headers)));
0 commit comments