From 4c22c1bbead475ec9cd64981310dd47a84963ee4 Mon Sep 17 00:00:00 2001 From: Jack Wilsdon Date: Sun, 3 Nov 2024 20:31:10 +0000 Subject: [PATCH 1/2] Update mediafile to 0.13.0 --- poetry.lock | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/poetry.lock b/poetry.lock index 403771b89a..8058e4dbf1 100644 --- a/poetry.lock +++ b/poetry.lock @@ -632,6 +632,17 @@ files = [ [package.extras] test = ["pytest (>=6)"] +[[package]] +name = "filetype" +version = "1.2.0" +description = "Infer file type and MIME type of any file/buffer. No external dependencies." +optional = false +python-versions = "*" +files = [ + {file = "filetype-1.2.0-py2.py3-none-any.whl", hash = "sha256:7ce71b6880181241cf7ac8697a2f1eb6a8bd9b429f7ad6d27b8db9ba5f1c2d25"}, + {file = "filetype-1.2.0.tar.gz", hash = "sha256:66b56cd6474bf41d8c54660347d37afcc3f7d1970648de365c102ef77548aadb"}, +] + [[package]] name = "flask" version = "3.0.3" @@ -1321,18 +1332,18 @@ files = [ [[package]] name = "mediafile" -version = "0.12.0" +version = "0.13.0" description = "Handles low-level interfacing for files' tags. Wraps Mutagen to" optional = false python-versions = ">=3.7" files = [ - {file = "mediafile-0.12.0-py3-none-any.whl", hash = "sha256:6b6fdb61bb151cd9d6a8a8821ce28adee604ede8a9a992f0d9dd3e835ef4899b"}, - {file = "mediafile-0.12.0.tar.gz", hash = "sha256:d75d805a06ed56150dbcea76505e700f9809abd9e98f98117ae46f5df2ccf1d7"}, + {file = "mediafile-0.13.0-py3-none-any.whl", hash = "sha256:cd8d183d0e0671b5203a86e92cf4e3338ecc892a1ec9dcd7ec0ed87779e514cb"}, + {file = "mediafile-0.13.0.tar.gz", hash = "sha256:de71063e1bffe9733d6ccad526ea7dac8a9ce760105827f81ab0cb034c729a6d"}, ] [package.dependencies] +filetype = ">=1.2.0" mutagen = ">=1.46" -six = ">=1.9" [package.extras] test = ["tox"] From 5a3cace84e5b9c3e58fd6cf91f3996b4b7e9ae74 Mon Sep 17 00:00:00 2001 From: Jack Wilsdon Date: Sun, 3 Nov 2024 20:46:29 +0000 Subject: [PATCH 2/2] Use correct JPEG header in tests --- beets/test/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/test/helper.py b/beets/test/helper.py index 19f7299ed8..b8ed209e78 100644 --- a/beets/test/helper.py +++ b/beets/test/helper.py @@ -992,7 +992,7 @@ def run(self, *args, **kwargs): super().run(*args, **kwargs) IMAGEHEADER = { - "image/jpeg": b"\x00" * 6 + b"JFIF", + "image/jpeg": b"\xff\xd8\xff" + b"\x00" * 3 + b"JFIF", "image/png": b"\211PNG\r\n\032\n", }