diff --git a/SABnzbd.py b/SABnzbd.py index b534b00..5b52d3b 100755 --- a/SABnzbd.py +++ b/SABnzbd.py @@ -401,7 +401,7 @@ def print_modules(): """ Log all detected optional or external modules """ if sabnzbd.decoder.SABYENC_ENABLED: # Yes, we have SABYenc, and it's the correct version, so it's enabled - logging.info("SABYenc module (v%s)... found!", sabnzbd.constants.SABYENC_VERSION_REQUIRED) + logging.info("SABYenc module (v%s)... found!", sabnzbd.decoder.SABYENC_VERSION) else: # Something wrong with SABYenc, so let's determine and print what: if sabnzbd.decoder.SABYENC_VERSION: diff --git a/sabnzbd/constants.py b/sabnzbd/constants.py index 394ffec..1ae2c95 100644 --- a/sabnzbd/constants.py +++ b/sabnzbd/constants.py @@ -51,7 +51,7 @@ RENAMES_FILE = '__renames__' ATTRIB_FILE = 'SABnzbd_attrib' REPAIR_REQUEST = 'repair-all.sab' -SABYENC_VERSION_REQUIRED = '3.3.1' +SABYENC_VERSION_REQUIRED = '3.3.2' DB_HISTORY_VERSION = 1 DB_HISTORY_NAME = 'history%s.db' % DB_HISTORY_VERSION diff --git a/sabnzbd/decoder.py b/sabnzbd/decoder.py index 86bb306..145aa60 100644 --- a/sabnzbd/decoder.py +++ b/sabnzbd/decoder.py @@ -48,8 +48,8 @@ try: import sabyenc SABYENC_ENABLED = True SABYENC_VERSION = sabyenc.__version__ - # Verify version - if SABYENC_VERSION != SABYENC_VERSION_REQUIRED: + # Verify version to at least match minor version + if SABYENC_VERSION[:3] != SABYENC_VERSION_REQUIRED[:3]: raise ImportError except ImportError: SABYENC_ENABLED = False