Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Veehd - downloads don't work for long videos #3144
Comments
|
Unfortunately it does not seem to work any more: it just downloads the advertisement! |
|
None of the provided URL seems to work anymore (videos are removed or unavailable). The second test video in the extractor is removed, but this isn't specified in the test. For the third test video:
However, there are still many videos that work, like this one, so the extractor isn't completely broken. |
Hi
Veehd downloads do not work for long videos.
Throws error of 'Unable to extract config json'
It seems that a "link expired" page is served instead of the desired player page with the .
The proper page is only served after sending a POST request which I believe creates a cookie.
I do not have the technical ability to implement this but below is a detailed analysis.
Two sample videos:
short -> http://veehd.com/video/4686958
long -> http://veehd.com/video/1901703
When visit the respective player pages:
short -> view-source:link to short vid player
long -> view-source:link to long vid player
You can see that the long video serves a page with the text "link expired"
whereas the short video serves a page with the desired player .
See 'player_path' in veehd.py
Looking through the inline javascript of the original video page,
it becomes apparent that a POST request is sent.
Specifically through the function 'prepare_server'.
The function executes the following line:
Which translates to:
The global variables 'ts' and 'sgn' vary with each video and can be found in the inline javascript.
Once the post request is manually sent, the player page for the long video now returns the desired player rather than the "link expired" text.
Below is a sample of the response