|
|
@ -331,6 +331,8 @@ class Publications(Bureau):
|
|
|
|
|
|
|
|
|
|
|
|
if entry.img != " ":
|
|
|
|
if entry.img != " ":
|
|
|
|
fileext = "." + entry.img.rsplit(".",1)[1]
|
|
|
|
fileext = "." + entry.img.rsplit(".",1)[1]
|
|
|
|
|
|
|
|
if len(fileext) > 4:
|
|
|
|
|
|
|
|
fileext = ".jpg"
|
|
|
|
filename = tempfile.mktemp(fileext)
|
|
|
|
filename = tempfile.mktemp(fileext)
|
|
|
|
print("fetching", entry.img, filename)
|
|
|
|
print("fetching", entry.img, filename)
|
|
|
|
urllib.request.urlretrieve(entry.img, filename)
|
|
|
|
urllib.request.urlretrieve(entry.img, filename)
|
|
|
|