Closed Dax89 closed 9 years ago
Thanks. I am working on it :)
I think I closed it now. Do you have any direct link I can try out ?
It gives me a forbidden reply. (I also tested my desktop browser which gives me the same)
Mmmmmh, probably because it checks the ip address :(
The steps required in order to recover the direct link are (you can do it in your desktop browser too):
var f = document.querySelector("iframe[class='video-player']");
f.contentWindow.info;
'info' is a JSON object, it contains some interesting fields named "stream......_url" containing direct links of the video, all of them triggers a redirect.
I have tried to search other web sites with a redirected download, but I cannot find them :(
Some downloads trigger redirects, as result you have a 0 bytes file. I have experienced this issue grabbing videos from DailyMotion.
I have handled the status code 302 in this commit: https://github.com/Dax89/harbour-webpirate/commit/be4470106d6ed6301aa9f085d95c26bddb855f75