(ATV_udid, uuid, name, scheme, ip, port)
| 66 | name, scheme, ip, port, type, owned, token |
| 67 | """ |
| 68 | def 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 | |
| 86 | def updatePMSProperty(ATV_udid, uuid, tag, value): |
| 87 | # set property element of PMS by UUID |
no outgoing calls
no test coverage detected