adownloader icon indicating copy to clipboard operation
adownloader copied to clipboard

What is the content of the function "extrade()"?

Open Daniel-Yen opened this issue 7 years ago • 3 comments

When I want to test the Iqiyi VIP link, I was puzzled at the funtion extrade().

$qdsc=extrae($link,'&qd','_sc=','&'); $qd_ip=extrae($link,'&qd_ip','=','&'); $qd_scc=extrae($link,'&qd_scc','=','&'); $qd_tm=extrae($link,'&qd_tm','=','&'); $qd_k=extrae($link,'&qd_k','=','&'); $qd_index=extrae($link,'&qd_index','=','&'); $qd_stert=extrae($link,'&qd_stert','=','&');

So what's the content of the function "extrae()"? @denobisipsis

Daniel-Yen avatar Aug 14 '17 13:08 Daniel-Yen

Sorry, this is my own function to extract the text from $text between y and z beginning in x:

extrae($text,x,y,z)

denobisipsis avatar Aug 14 '17 14:08 denobisipsis

Like http://www.iqiyi.com/v_19rr78nouw.html, how can I get the variable $link? Could you show me an example of the variable $link? @denobisipsis

Daniel-Yen avatar Aug 15 '17 02:08 Daniel-Yen

$link is the url taken from api cache,

http://cache.video.iqiyi.com/jp/vms?tvId=693339900&vid=93ea0fe4d5b683fb667134e6f16ed9f6&key=fvip&src=01010031010000000000&vinfo=1&tm=1500196768438&puid=&qyid=a8545a8ef331301a7e97f06eb033d00f&authKey=f9443d8870ee26f4a59f319c661342a1&um=0&pf=b6c13e26323c537d&thdk=&thdt=&rs=1&k_tag=1&qdv=1&tn=0.0005007142026540734&callback=QiyiPlayerLoader.callbacks.Q14a6169c4f9beca044569ab0faaf8da9&vf=7ea71d73f923e2e343c97d96e1c4b048

then

"l":"/v0/20170614/78/a0/cbd6186ae8fdf23a50afd44017658dbc.f4v?qd_tvid=693339900&qd_vipres=2&qd_index=1&qd_aid=693339900&qd_stert=0&qd_scc=8eb9d54049b2b8a5a77bb54c35123b19&qd_sc=656a28d334d91a9027977b0ef27742cd&qd_p=5aa46545&qd_ip=xxxxxxxx&qd_k=7ea71d73f923e2e343c97d96e1c4b048&qd_src=01010031010000000000&qd_vipdyn=2&qd_uid=0&qd_tm=1502778994423&qd_vip=0"

here you have the variables requested

denobisipsis avatar Aug 15 '17 06:08 denobisipsis