Cover art: Add support for GIF

This commit is contained in:
Thomas Perl 2012-03-08 10:49:58 +01:00
parent ba8cfa7137
commit 8a97b1c629
1 changed files with 1 additions and 0 deletions

View File

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