Browse Source

Only require SABYenc to match minor version and bump to 3.3.2

pull/1076/head
Safihre 8 years ago
parent
commit
5ca66bfeef
  1. 2
      SABnzbd.py
  2. 2
      sabnzbd/constants.py
  3. 4
      sabnzbd/decoder.py

2
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:

2
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

4
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

Loading…
Cancel
Save