Formalize URL creation (prepare for some cleanup in blip.tv:users)
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 24 Feb 2013 22:23:50 +0000 (23:23 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 24 Feb 2013 22:23:50 +0000 (23:23 +0100)
youtube_dl/InfoExtractors.py

index 3b1e14ba97d2b2a8eacd7ed4ec9c0b7716039b7d..d661d517dea96e09819ec52f58cf0205f40b0d72 100755 (executable)
@@ -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: