mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
commit
3377cb338e
15 changed files with 100 additions and 44 deletions
|
@ -798,7 +798,10 @@ def find_download(clientAgent, download_id):
|
|||
if clientAgent == 'deluge':
|
||||
return False
|
||||
if clientAgent == 'sabnzbd':
|
||||
baseURL = "http://%s:%s/api" % (core.SABNZBDHOST, core.SABNZBDPORT)
|
||||
if "http" in core.SABNZBDHOST:
|
||||
baseURL = "%s:%s/api" % (core.SABNZBDHOST, core.SABNZBDPORT)
|
||||
else:
|
||||
baseURL = "http://%s:%s/api" % (core.SABNZBDHOST, core.SABNZBDPORT)
|
||||
url = baseURL
|
||||
params = {}
|
||||
params['apikey'] = core.SABNZBDAPIKEY
|
||||
|
@ -819,7 +822,10 @@ def find_download(clientAgent, download_id):
|
|||
def get_nzoid(inputName):
|
||||
nzoid = None
|
||||
logger.debug("Searching for nzoid from SAbnzbd ...")
|
||||
baseURL = "http://%s:%s/api" % (core.SABNZBDHOST, core.SABNZBDPORT)
|
||||
if "http" in core.SABNZBDHOST:
|
||||
baseURL = "%s:%s/api" % (core.SABNZBDHOST, core.SABNZBDPORT)
|
||||
else:
|
||||
baseURL = "http://%s:%s/api" % (core.SABNZBDHOST, core.SABNZBDPORT)
|
||||
url = baseURL
|
||||
params = {}
|
||||
params['apikey'] = core.SABNZBDAPIKEY
|
||||
|
@ -1057,7 +1063,7 @@ def server_responding(baseURL):
|
|||
|
||||
def plex_update(category):
|
||||
if core.PLEXSSL:
|
||||
ulr = 'https://'
|
||||
url = 'https://'
|
||||
else:
|
||||
url = 'http://'
|
||||
url = url + core.PLEXHOST + ':' + core.PLEXPORT + '/library/sections/'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue