mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 22:05:09 +01:00
Case where no icon is supplied
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user