Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VeeHD] Problems downloading TEST video #2102

Closed
OpenHMR opened this issue Jan 5, 2014 · 2 comments
Closed

[VeeHD] Problems downloading TEST video #2102

OpenHMR opened this issue Jan 5, 2014 · 2 comments

Comments

@OpenHMR
Copy link

@OpenHMR OpenHMR commented Jan 5, 2014

Trying to download 'http://veehd.com/video/4686958' I get this error:

[VeeHD] 4686958: Downloading webpage
[VeeHD] 4686958: Downloading player page
ERROR: Unable to extract config json;

But then, in a second attemp (immediately), the same video is downloaded without problems.

Greetings.

@phihag
Copy link
Contributor

@phihag phihag commented Jan 6, 2014

I can reproduce the behavior, but have no idea why it's happening. Requesting the page twice or setting a timeout of 5s before requesting it does not seem to help.

@OpenHMR
Copy link
Author

@OpenHMR OpenHMR commented Jan 6, 2014

I also do not know why it happens but downloading twice both webpage and player_page seems to work:

    player_url = compat_urlparse.urljoin(url, player_path)
# first added download
    self._download_webpage(player_url, video_id,
        u'Downloading first player page')
# second added download
    self._download_webpage(url, video_id)
    player_page = self._download_webpage(player_url, video_id,
        u'Downloading 2nd player page')
    config_json = self._search_regex(r'value=\'config=({.+?})\'',
        player_page, u'config json')
    config = json.loads(config_json)

Greetings.

@phihag phihag closed this in c11a061 Jan 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.