Added User Agent info to another urllib2.Request call which was missed in the previous commit
--- a/downloadkit/downloadkit.py Tue Dec 22 12:34:01 2009 +0000
+++ b/downloadkit/downloadkit.py Tue Dec 22 13:55:14 2009 +0000
@@ -157,7 +157,7 @@
if first_chunk and chunk.find('<div id="sign_in_box">') != -1:
# our urllib2 cookies have gone awol - login again
login(False)
- req = urllib2.Request(downloadurl)
+ req = urllib2.Request(downloadurl, None, headers)
response = urllib2.urlopen(req)
chunk = response.read(CHUNK)
fp.write(chunk)