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:
@@ -345,7 +345,9 @@ class Bookmark(BaseModel):
|
|||||||
# Debug for the moment
|
# Debug for the moment
|
||||||
print(domain)
|
print(domain)
|
||||||
print(response.headers)
|
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'
|
# Default to 'image/png'
|
||||||
fileextension = '.png'
|
fileextension = '.png'
|
||||||
if response.headers['content-type'] == 'image/jpeg':
|
if response.headers['content-type'] == 'image/jpeg':
|
||||||
|
|||||||
Reference in New Issue
Block a user