mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
check imagemagick output with bytes regex too
This commit is contained in:
parent
7467ebaaca
commit
e7f70c896d
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ def get_im_version():
|
|||
out = util.command_output([b'identify', b'--version'])
|
||||
|
||||
if b'imagemagick' in out.lower():
|
||||
pattern = r".+ (\d+)\.(\d+)\.(\d+).*"
|
||||
pattern = br".+ (\d+)\.(\d+)\.(\d+).*"
|
||||
match = re.search(pattern, out)
|
||||
if match:
|
||||
return (int(match.group(1)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue