diff --git a/pyrekordbox/anlz/file.py b/pyrekordbox/anlz/file.py index 32f81c2..45bdcbb 100644 --- a/pyrekordbox/anlz/file.py +++ b/pyrekordbox/anlz/file.py @@ -114,10 +114,10 @@ def _parse(self, data: bytes): # Check if the file is garbled (only on exported files) # For this we check the validity of mood and bank # Mood: High=1, Mid=2, Low=3 - # Bank: 1-8 + # Bank: 0-8 mood = Int16ub.parse(tag_data[18:20]) bank = Int16ub.parse(tag_data[28:30]) - if 1 <= mood <= 3 and 1 <= bank <= 8: + if 1 <= mood <= 3 and 0 <= bank <= 8: logger.debug("PSSI is not garbled!") else: logger.debug("PSSI is garbled!")