diff --git a/screenless/bureau/publications/publications.py b/screenless/bureau/publications/publications.py index a90ef43..e433ab5 100644 --- a/screenless/bureau/publications/publications.py +++ b/screenless/bureau/publications/publications.py @@ -331,6 +331,8 @@ class Publications(Bureau): if entry.img != " ": fileext = "." + entry.img.rsplit(".",1)[1] + if len(fileext) > 4: + fileext = ".jpg" filename = tempfile.mktemp(fileext) print("fetching", entry.img, filename) urllib.request.urlretrieve(entry.img, filename)