Merge pull request #1464 from tpikonen/svg-cover

Accept coverart as SVG
This commit is contained in:
auouymous 2023-02-16 21:32:10 -07:00 committed by GitHub
commit 96e56482fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ class CoverDownloader(object):
'.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'),
'.svg': lambda d: d.startswith(b'<svg '),
}
EXTENSIONS = list(SUPPORTED_EXTENSIONS.keys())