mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Change suppress output warnings from media process scripts.
This commit is contained in:
parent
5dff83a338
commit
1a3dd5f8e1
4 changed files with 15 additions and 2 deletions
|
@ -34,6 +34,7 @@
|
|||
* Change pick up the stragglers late to the more security party
|
||||
* Change remove redundant xsrf handling for POSTs that don't use web and API
|
||||
* Change add xsrf protection support to media processing scripts
|
||||
* Change suppress output warnings from media process scripts
|
||||
|
||||
|
||||
### 0.15.6 (2018-04-05 01:20:00 UTC)
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
|
||||
# Send PostProcessing requests to SickGear
|
||||
#
|
||||
# PostProcessing-Script version: 1.3.
|
||||
# PostProcessing-Script version: 1.5.
|
||||
# <!--
|
||||
# For more info and updates please visit forum topic at
|
||||
# -->
|
||||
|
@ -155,11 +155,15 @@ import locale
|
|||
import os
|
||||
import re
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
__version__ = '1.4'
|
||||
__version__ = '1.5'
|
||||
|
||||
verbose = 0 or 'yes' == os.environ.get('NZBPO_SG_VERBOSE', 'no')
|
||||
|
||||
warnings.filterwarnings('ignore', module=r'.*connectionpool.*', message='.*certificate verification.*')
|
||||
warnings.filterwarnings('ignore', module=r'.*ssl_.*', message='.*SSLContext object.*')
|
||||
|
||||
# NZBGet exit codes for post-processing scripts (Queue-scripts don't have any special exit codes).
|
||||
POSTPROCESS_SUCCESS, POSTPROCESS_ERROR, POSTPROCESS_NONE = 93, 94, 95
|
||||
|
||||
|
|
|
@ -23,11 +23,15 @@ from __future__ import with_statement
|
|||
|
||||
import os.path
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
sickbeardPath = os.path.split(os.path.split(sys.argv[0])[0])[0]
|
||||
sys.path.insert(1, os.path.join(sickbeardPath, 'lib'))
|
||||
sys.path.insert(1, sickbeardPath)
|
||||
|
||||
warnings.filterwarnings('ignore', module=r'.*connectionpool.*', message='.*certificate verification.*')
|
||||
warnings.filterwarnings('ignore', module=r'.*ssl_.*', message='.*SSLContext object.*')
|
||||
|
||||
try:
|
||||
import requests
|
||||
except ImportError:
|
||||
|
|
|
@ -5,12 +5,16 @@ import os
|
|||
import time
|
||||
import ConfigParser
|
||||
import logging
|
||||
import warnings
|
||||
|
||||
sickbeardPath = os.path.split(os.path.split(sys.argv[0])[0])[0]
|
||||
sys.path.insert(1, os.path.join(sickbeardPath, 'lib'))
|
||||
sys.path.insert(1, sickbeardPath)
|
||||
configFilename = os.path.join(sickbeardPath, 'config.ini')
|
||||
|
||||
warnings.filterwarnings('ignore', module=r'.*connectionpool.*', message='.*certificate verification.*')
|
||||
warnings.filterwarnings('ignore', module=r'.*ssl_.*', message='.*SSLContext object.*')
|
||||
|
||||
try:
|
||||
import requests
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in a new issue