diff --git a/puremagic/scanners/mpeg_audio_scanner.py b/puremagic/scanners/mpeg_audio_scanner.py index f1e6b17..8b0cd9e 100644 --- a/puremagic/scanners/mpeg_audio_scanner.py +++ b/puremagic/scanners/mpeg_audio_scanner.py @@ -228,7 +228,7 @@ def _tag_plus(self) -> None: assert self.foot_string is not None tag_size = 128 tag_plus_size = 227 - speed_loc = 184 # Speed byte posistion in tag + speed_loc = 184 # Speed byte position in tag combined_size = tag_plus_size + tag_size if self.foot_size < combined_size: # TAG+ + ID3v1 @@ -466,7 +466,7 @@ def _ape(self, id3v1: bool | None) -> None: b"MCN", ) id3v1_size = 128 - max_tag_size = 1048576 # This is a pratical scan range of 1MB, Ape v2 in theory can be 4GB + max_tag_size = 1048576 # This is a practical scan range of 1MB, Ape v2 in theory can be 4GB combined_size = (max_tag_size + id3v1_size) if id3v1 else max_tag_size if self.foot_size < combined_size: # APE OR APE + ID3v1 @@ -493,7 +493,7 @@ def _ape(self, id3v1: bool | None) -> None: f_size = struct.unpack("