MCPcopy
hub / github.com/iBaa/PlexConnect / declarePMS

Function declarePMS

PlexAPI.py:68–84  ·  view source on GitHub ↗
(ATV_udid, uuid, name, scheme, ip, port)

Source from the content-addressed store, hash-verified

66 name, scheme, ip, port, type, owned, token
67"""
68def declarePMS(ATV_udid, uuid, name, scheme, ip, port):
69 # store PMS information in g_PMS database
70 global g_PMS
71 if not ATV_udid in g_PMS:
72 g_PMS[ATV_udid] = {}
73
74 address = ip + ':' + port
75 baseURL = scheme+'://'+ip+':'+port
76 g_PMS[ATV_udid][uuid] = { 'name': name,
77 'scheme':scheme, 'ip': ip , 'port': port,
78 'address': address,
79 'baseURL': baseURL,
80 'local': '1',
81 'owned': '1',
82 'accesstoken': '',
83 'enableGzip': False
84 }
85
86def updatePMSProperty(ATV_udid, uuid, tag, value):
87 # set property element of PMS by UUID

Callers 2

discoverPMSFunction · 0.85
getPMSListFromMyPlexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected