1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-06 01:22:35 +00:00

Formalize URL creation (prepare for some cleanup in blip.tv:users)

This commit is contained in:
Philipp Hagemeister 2013-02-24 23:23:50 +01:00
parent 9befce2b8c
commit 450e709972

View File

@ -1921,9 +1921,8 @@ class BlipTVUserIE(InfoExtractor):
while True: while True:
self.report_download_page(username, pagenum) self.report_download_page(username, pagenum)
url = page_base + "&page=" + str(pagenum)
request = compat_urllib_request.Request( page_base + "&page=" + str(pagenum) ) request = compat_urllib_request.Request( url )
try: try:
page = compat_urllib_request.urlopen(request).read().decode('utf-8') page = compat_urllib_request.urlopen(request).read().decode('utf-8')
except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err: except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err: