aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-02-24 23:23:50 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-02-24 23:23:50 +0100
commit450e70997276b9628842653f37f2d68d4fb4ba4d (patch)
tree567558a2d9d76117b90c0585555aa4bb33e6ff83
parent9befce2b8ce5fffda15102e126b6ebec40b9f38a (diff)
Formalize URL creation (prepare for some cleanup in blip.tv:users)
-rwxr-xr-xyoutube_dl/InfoExtractors.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 3b1e14ba9..d661d517d 100755
--- a/youtube_dl/InfoExtractors.py
+++ b/youtube_dl/InfoExtractors.py
@@ -1921,9 +1921,8 @@ class BlipTVUserIE(InfoExtractor):
while True:
self.report_download_page(username, pagenum)
-
- request = compat_urllib_request.Request( page_base + "&page=" + str(pagenum) )
-
+ url = page_base + "&page=" + str(pagenum)
+ request = compat_urllib_request.Request( url )
try:
page = compat_urllib_request.urlopen(request).read().decode('utf-8')
except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err: