Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyps4/ddp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def parse_ddp_response(rsp):
data[u'status_code'] = int(re_status.match(line).group('code'))
data[u'status'] = re_status.match(line).group('status')
else:
values = line.split(':')
values = line.split(':', 1)
data[values[0]] = values[1]
return data

Expand Down
4 changes: 2 additions & 2 deletions tests/test_ps4.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def test_get_host_id(self):
mock.side_effect = [
{'host-id': 'test-A'},
{'host-name': 'test-B'},
{'running-app-titleid': 'test-C'},
{'running-app-titleid': 'test-C: C'},
{'running-app-name': 'test-D'},
{'system-version': 'test-E'},
]
Expand All @@ -90,6 +90,6 @@ def test_get_host_id(self):

eq_(playstation.get_host_id(), 'test-A')
eq_(playstation.get_host_name(), 'test-B')
eq_(playstation.get_running_app_titleid(), 'test-C')
eq_(playstation.get_running_app_titleid(), 'test-C: C')
eq_(playstation.get_running_app_name(), 'test-D')
eq_(playstation.get_system_version(), 'test-E')