Revision 8e3ee002
| b/host/utils/uhd_images_downloader.py.in | ||
|---|---|---|
| 46 | 46 |
u = urllib2.urlopen(images_src) |
| 47 | 47 |
f = open(filename, "wb") |
| 48 | 48 |
meta = u.info() |
| 49 |
#filesize = int(meta.getheaders("Content-Length")[0])
|
|
| 50 |
filesize = float(int(meta.getheaders("Content-Length")[0]))
|
|
| 49 |
filesize = float(meta.getheaders("Content-Length")[0])
|
|
| 51 | 50 |
|
| 52 | 51 |
print "Downloading images from: %s" % images_src |
| 53 | 52 |
|
Also available in: Unified diff