Skip to content

Commit 62d9c57

Browse files
committed
Fix: fetch_operation_status
1 parent 5429433 commit 62d9c57

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

smartglass_api.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,14 @@ def __init__(
3636

3737
async def fetch_operation_status(
3838
self,
39-
operation_id: Union[str, list],
39+
operation_id: str,
4040
device_id: str
4141
) -> OperationStatusResponse:
42-
op_ids = operation_id if type(operation_id) == str else \
43-
','.join(operation_id),
44-
4542
url = f'https://xccs.xboxlive.com/opStatus'
4643
headers = {
4744
'MS-CV': self.cv.increment(),
4845
'x-xbl-contract-version': '3',
49-
'x-xbl-opId': op_ids,
46+
'x-xbl-opId': operation_id,
5047
'x-xbl-deviceId': device_id
5148
}
5249
request = self.session.build_request('GET', url, headers=headers)

0 commit comments

Comments
 (0)