Merge branch 'nightly' into python3

# Conflicts:
#	plexpy/datafactory.py
This commit is contained in:
JonnyWong16 2020-04-03 21:10:32 -07:00
commit fb395fc2e9
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 7 additions and 4 deletions

View file

@ -354,7 +354,6 @@ class DataFactory(object):
'user': '',
'friendly_name': '',
'platform': '',
'platform': '',
'live': item['live'],
'guid': item['guid'],
'row_id': item['id']
@ -1433,7 +1432,7 @@ class DataFactory(object):
if rating_key:
logger.info("Tautulli DataFactory :: Deleting lookup info for rating_key %s from the database."
% (title, rating_key))
% rating_key)
result_themoviedb = monitor_db.action('DELETE FROM themoviedb_lookup WHERE rating_key = ?', [rating_key])
result_tvmaze = monitor_db.action('DELETE FROM tvmaze_lookup WHERE rating_key = ?', [rating_key])
result_musicbrainz = monitor_db.action('DELETE FROM musicbrainz_lookup WHERE rating_key = ?', [rating_key])

View file

@ -462,7 +462,11 @@ def create_https_certificates(ssl_cert, ssl_key):
This code is stolen from SickBeard (http://github.com/midgetspy/Sick-Beard).
"""
try:
from OpenSSL import crypto
except ImportError:
logger.error("Unable to generate self-signed certificates: Missing OpenSSL module.")
return False
from certgen import createKeyPair, createSelfSignedCertificate, TYPE_RSA
serial = timestamp()

View file

@ -301,7 +301,7 @@ def send_newsletter(newsletter_id=None, subject=None, body=None, message=None, n
email_config=newsletter_config['email_config'],
subject=subject,
body=body,
messsage=message)
message=message)
return agent.send()
else:
logger.debug("Tautulli Newsletters :: Notification requested but no newsletter_id received.")