From 536a1847f40cce0aba44a9479af9ef8f8d07bde4 Mon Sep 17 00:00:00 2001 From: moodyblue Date: Mon, 6 Apr 2020 18:33:17 +0100 Subject: [PATCH] Enable channels Fixes #568 --- PlexAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlexAPI.py b/PlexAPI.py index 9f21ff559..5e3886836 100755 --- a/PlexAPI.py +++ b/PlexAPI.py @@ -573,7 +573,7 @@ def getXMLFromMultiplePMS(ATV_udid, path, type, options={}): for Dir in XML.getiterator('Directory'): # copy "Directory" content, add PMS to links - if Dir.get('key') is not None and Dir.get('agent') is not None: + if Dir.get('key') is not None and (Dir.get('agent') is not None or Dir.get('hasPrefs') is None): key = Dir.get('key') # absolute path Dir.set('key', PMS_mark + getURL('', path, key)) Dir.set('refreshKey', getURL(baseURL, path, key) + '/refresh')