forked from platypush/platypush
New pychromecast has replaced host/port with uri
This commit is contained in:
parent
711ea543bb
commit
c7711d75a1
1 changed files with 2 additions and 2 deletions
|
@ -173,8 +173,8 @@ class MediaChromecastPlugin(MediaPlugin):
|
||||||
'manufacturer': cc.device.manufacturer,
|
'manufacturer': cc.device.manufacturer,
|
||||||
'model_name': cc.model_name,
|
'model_name': cc.model_name,
|
||||||
'uuid': str(cc.device.uuid),
|
'uuid': str(cc.device.uuid),
|
||||||
'address': cc.host,
|
'address': cc.host if hasattr(cc, 'host') else cc.uri.split(':')[0],
|
||||||
'port': cc.port,
|
'port': cc.port if hasattr(cc, 'port') else int(cc.uri.split(':')[1]),
|
||||||
|
|
||||||
'status': ({
|
'status': ({
|
||||||
'app': {
|
'app': {
|
||||||
|
|
Loading…
Reference in a new issue