mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
fix nonetype error in plexupdate. #566
This commit is contained in:
parent
fc3ee3fa79
commit
6000a879ea
2 changed files with 7 additions and 5 deletions
|
@ -1056,13 +1056,15 @@ def server_responding(baseURL):
|
|||
return False
|
||||
|
||||
def plex_update(category):
|
||||
logger.debug("Attempting to update Plex Library for category %s." %(category), 'PLEX')
|
||||
if core.PLEXSSL:
|
||||
ulr = 'https://'
|
||||
else:
|
||||
url = 'http://'
|
||||
url = url + core.PLEXHOST + ':' + core.PLEXPORT + '/library/sections/'
|
||||
section = None
|
||||
if not core.PLEXSEC:
|
||||
return
|
||||
logger.debug("Attempting to update Plex Library for category %s." %(category), 'PLEX')
|
||||
for item in core.PLEXSEC:
|
||||
if item[0] == category:
|
||||
section = item[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue