mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-23 08:06:46 +00:00
Merge pull request #944 from phw/PICARD-1327-fix-load-tak
PICARD-1327: Fix loading TAK files
This commit is contained in:
@@ -39,7 +39,7 @@ class TAKInfo(object):
|
||||
|
||||
def __init__(self, fileobj):
|
||||
header = fileobj.read(4)
|
||||
if len(header) != 4 or not header.startswith("tBaK"):
|
||||
if len(header) != 4 or not header.startswith(b"tBaK"):
|
||||
raise TAKHeaderError("not a TAK file")
|
||||
|
||||
def pprint(self):
|
||||
|
||||
BIN
test/data/test.tak
Normal file
BIN
test/data/test.tak
Normal file
Binary file not shown.
@@ -500,6 +500,11 @@ class MusepackSV8Test(CommonTests.FormatsTest):
|
||||
supports_ratings = False
|
||||
|
||||
|
||||
class TAKTest(CommonTests.FormatsTest):
|
||||
testfile = 'test.tak'
|
||||
supports_ratings = False
|
||||
|
||||
|
||||
cover_settings = {
|
||||
'embed_only_one_front_image': True,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user