denobisipsis / adownloader

Automatically exported from code.google.com/p/atresdownloader
32 stars 16 forks source link

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

Open Daniel-Yen opened 7 years ago

Daniel-Yen commented 7 years ago

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

denobisipsis commented 7 years ago

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

extrae($text,x,y,z)

Daniel-Yen commented 7 years ago

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

denobisipsis commented 7 years ago

$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