Browse Source

Show SABYenc detection at startup and in Config

pull/824/head
Safihre 8 years ago
parent
commit
00f2410d2d
  1. 5
      SABnzbd.py
  2. 9
      interfaces/Config/templates/config.tmpl
  3. 3
      sabnzbd/interface.py

5
SABnzbd.py

@ -428,6 +428,11 @@ def GetProfileInfo(vista_plus):
def print_modules():
""" Log all detected optional or external modules """
if sabnzbd.decoder.HAVE_SABYENC:
logging.info("SABYenc module... found!")
else:
logging.info("SABYenc module... NOT found!")
if sabnzbd.decoder.HAVE_YENC:
logging.info("_yenc module... found!")
else:

9
interfaces/Config/templates/config.tmpl

@ -68,6 +68,15 @@
</td>
</tr>
<!--#end if#-->
<!--#if not $have_yenc#-->
<tr>
<th scope="row">SABYenc:</th>
<td>
<span class="label label-danger">$T('notAvailable')</span>
<a href="$helpuri$help_uri#no_yenc" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a>
</td>
</tr>
<!--#end if#-->
<!--#if not $have_unzip #-->
<tr>
<th scope="row">$T('opt-enable_unzip'):</th>

3
sabnzbd/interface.py

@ -54,7 +54,7 @@ from sabnzbd.downloader import Downloader
from sabnzbd.nzbqueue import NzbQueue
import sabnzbd.wizard
from sabnzbd.utils.servertests import test_nntp_server_dict
from sabnzbd.decoder import HAVE_YENC
from sabnzbd.decoder import HAVE_YENC, HAVE_SABYENC
from sabnzbd.utils.sslinfo import ssl_version, ssl_protocols_labels
from sabnzbd.constants import \
@ -1266,6 +1266,7 @@ class ConfigPage(object):
conf['have_7zip'] = bool(sabnzbd.newsunpack.SEVEN_COMMAND)
conf['have_cryptography'] = bool(sabnzbd.HAVE_CRYPTOGRAPHY)
conf['have_yenc'] = HAVE_YENC
conf['have_sabyenc'] = HAVE_SABYENC
if sabnzbd.HAVE_SSL:
conf['have_ssl'] = 1

Loading…
Cancel
Save