Fix patching on android

This commit is contained in:
angelblue05 2018-09-08 20:40:59 -05:00
parent c9d5f13332
commit 39c223a1f0
3 changed files with 6 additions and 4 deletions

View file

@ -308,7 +308,7 @@ def get_objects(src, filename):
LOG.info(src) LOG.info(src)
path = os.path.join(temp, filename) path = os.path.join(temp, filename)
try: try:
response = requests.get(src, stream=True) response = requests.get(src, stream=True, verify=False)
response.raise_for_status() response.raise_for_status()
except Exception as error: except Exception as error:
raise raise

View file

@ -99,7 +99,7 @@ class Service(xbmc.Monitor):
if difference.seconds > 10: if difference.seconds > 10:
event('ReportProgressRequested', {'Report': difference.seconds > 270}) event('ReportProgressRequested', {'Report': difference.seconds > 200})
self.settings['last_progress'] = datetime.today() self.settings['last_progress'] = datetime.today()
if self.waitForAbort(1): if self.waitForAbort(1):
@ -136,7 +136,7 @@ class Service(xbmc.Monitor):
url = "https://sheets.googleapis.com/v4/spreadsheets/1cKWQCVL0lVONulO2KyGzBilzhGvsyuSjFvrqe8g6nJw/values/A2:B?key=AIzaSyAP-1mcBglk9zIofJlqGpvKXkff3GRMhdI" url = "https://sheets.googleapis.com/v4/spreadsheets/1cKWQCVL0lVONulO2KyGzBilzhGvsyuSjFvrqe8g6nJw/values/A2:B?key=AIzaSyAP-1mcBglk9zIofJlqGpvKXkff3GRMhdI"
try: try:
versions = {k.lower(): v for k, v in dict(requests.get(url).json()['values']).items()} versions = {k.lower(): v for k, v in dict(requests.get(url, verify=False).json()['values']).items()}
build = find(versions, kodi.lower()) build = find(versions, kodi.lower())
if not build: if not build:

View file

@ -303,7 +303,9 @@ class Monitor(xbmc.Monitor):
LOG.info("[ command/%s ]", command) LOG.info("[ command/%s ]", command)
def general_commands(self, data): def general_commands(self, data):
LOG.info(data)
''' General commands from Emby to control the Kodi interface.
'''
command = data['Name'] command = data['Name']
args = data['Arguments'] args = data['Arguments']