[pypy-issue] [issue1523] youtube-dl stuck at the end of HTTPS stream
Grom PE
tracker at bugs.pypy.org
Mon Jul 1 20:49:37 CEST 2013
New submission from Grom PE <i at grompe.org.ru>:
youtube-dl version 2013.05.05 up to newest 2013.06.34.4
when run with pypy 2.0.2 gets stuck at the end of HTTPS stream, which can be seen in the console as:
$ pypy youtube-dl 7-tNUur2YoU
[youtube] Setting language
[youtube] 7-tNUur2YoU: Downloading video webpage
Changing the line 413 in file "youtube_dl/extractor/youtube.py" to have http link instead makes the stream
read correctly:
url = 'http://www.youtube.com/watch?v=%s&gl=US&hl=en&has_verified=1' % video_id
If left as https, it gets stuck at the line 416:
video_webpage_bytes = compat_urllib_request.urlopen(request).read()
While using Python 2.7 and 3.3 youtube-dl has no such problem.
Other HTTPS streams seem to be read normally.
Correct behavior:
$ pypy youtube-dl 7-tNUur2YoU
[youtube] Setting language
[youtube] 7-tNUur2YoU: Downloading video webpage
[youtube] 7-tNUur2YoU: Downloading video info webpage
[youtube] 7-tNUur2YoU: Extracting video information
[download] Destination: Goldfish - We Come Together (OFFICIAL)-7-tNUur2YoU.mp4
[download] 0.2% of 66.60MiB at 172.09KiB/s ETA 06:35
youtube-dl: http://rg3.github.io/youtube-dl/download.html
----------
messages: 5888
nosy: Grom PE, pypy-issue
priority: bug
release: 2.0
status: unread
title: youtube-dl stuck at the end of HTTPS stream
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1523>
________________________________________
More information about the pypy-issue
mailing list