1. Travis Shirk
  2. eyeD3

Source

eyeD3 / src / eyed3 / plugins / statistics.py

Diff from to

File src/eyed3/plugins/statistics.py

         self._stats.append(Id3VersionCounter())
         self._stats.append(Id3FrameCounter())
         self._stats.append(BitrateCounter())
-        self._stats.append(self._rules_stat)
 
         self._score_sum = 0
         self._score_count = 0
                     # += because negative values are returned
                     total_score += score
 
+        if total_score != 100:
+            self._rules_stat[Stat.TOTAL] += 1
+
         self._score_sum += total_score
 
     def handleDone(self):
+
         print()
-        for stat in self._stats:
+        for stat in self._stats + [self._rules_stat]:
             stat.report()
             print()