/**
 * 本模块负责处理并记录playinfo信息
 */ /**
 * 本模块负责处理并记录playinfo信息
 */ ( function ( ) { API . xhrhook ( [ "/playurl?" ] , function ( args ) { let obj = API . urlObj ( args [ 1 ] ) ; ! obj . sign && ( obj . fourk = 1 , obj . fnval && ( obj . fnval = 2000 ) ) ; obj . avid && Number ( obj . avid ) && Reflect . set ( API , "aid" , obj . avid ) ; ! API . aid && obj . bvid && Reflect . set ( API , "aid" , API . abv ( obj . bvid ) ) ; obj . cid && Number ( obj . cid ) && Reflect . set ( API , "cid" , obj . cid ) ; args [ 1 ] = API . objUrl ( args [ 1 ] . split ( "?" ) [ 0 ] , obj ) ; args [ 1 ] . includes ( "84956560bc028eb7" ) && ( args [ 1 ] = API . urlsign ( args [ 1 ] , { } , 8 ) ) ; args [ 1 ] . includes ( "pgc" ) && ( API . pgc = true ) ; this . addEventListener ( "readystatechange" , async ( ) => record . call ( this ) ) ; } ) ; function record ( this ) { try { if ( this . readyState === 4 ) { if ( ! this . response ) throw this ; API . __playinfo__ = typeof this . response == "object" ? this . response : API . jsonCheck ( this . response ) ; } } catch ( e ) { debug . error ( "playinfoRecord.js" , e ) ; } } } ) ( ) ; declare namespace API { /**
     * __playinfo__
     */ let __playinfo__ ; /**
     * bangumi视频标记
     */ let pgc ; }