From: Philipp Hagemeister Date: Sun, 24 Feb 2013 22:23:50 +0000 (+0100) Subject: Formalize URL creation (prepare for some cleanup in blip.tv:users) X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=450e70997276b9628842653f37f2d68d4fb4ba4d;p=youtube-dl.git Formalize URL creation (prepare for some cleanup in blip.tv:users) --- 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: