Showing 1 of 1 files from the diff.

@@ -797,7 +797,7 @@
Loading
797 797
            pass
798 798
799 799
        try:
800 -
            self.metadata_blocks[0].length
800 +
            self.info.length
801 801
        except (AttributeError, IndexError):
802 802
            raise FLACNoHeaderError("Stream info block not found")
803 803
@@ -811,7 +811,11 @@
Loading
811 811
812 812
    @property
813 813
    def info(self):
814 -
        return self.metadata_blocks[0]
814 +
        streaminfo_blocks = [
815 +
            block for block in self.metadata_blocks
816 +
            if block.code == StreamInfo.code
817 +
        ]
818 +
        return streaminfo_blocks[0]
815 819
816 820
    def add_picture(self, picture):
817 821
        """Add a new picture to the file.
Files Coverage
mutagen 90.88%
tests 98.62%
Project Totals (103 files) 94.53%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading