1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 20:55:10 +01:00

Case where no icon is supplied

This commit is contained in:
2018-03-23 13:17:21 +01:00
parent fac3a4f747
commit d7b2c28c96

View File

@@ -345,7 +345,9 @@ class Bookmark(BaseModel):
# Debug for the moment
print(domain)
print(response.headers)
print(response.headers['X-RateLimit-requests-Remaining'])
if response.headers['Content-Length'] == '0':
# No favicon found, likely
print('Skipping this favicon, needs fallback')
# Default to 'image/png'
fileextension = '.png'
if response.headers['content-type'] == 'image/jpeg':