Accept coverart as SVG

This commit is contained in:
Teemu Ikonen 2023-01-28 22:46:05 +02:00
parent 255d74ffc9
commit aed3a9fabc
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())