add support for feed image in ico format

This commit is contained in:
Eric Le Lay 2019-05-08 18:55:57 +02:00
parent 28e2ef0a06
commit 19bf70572c
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class CoverDownloader(object):
'.png': lambda d: d.startswith(b'\x89PNG\r\n\x1a\n\x00'),
'.jpg': lambda d: d.startswith(b'\xff\xd8'),
'.gif': lambda d: d.startswith(b'GIF89a') or d.startswith(b'GIF87a'),
'.ico': lambda d: d.startswith(b'\0\0\1\0'),
}
EXTENSIONS = list(SUPPORTED_EXTENSIONS.keys())