Permalink
Browse files

Cover art: Add support for GIF

  • Loading branch information...
1 parent ba8cfa7 commit 8a97b1c6292feeb8c06ece2a4c5344f42aeb8e99 @thp thp committed Mar 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gpodder/coverart.py
View
@@ -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()

0 comments on commit 8a97b1c

Please sign in to comment.