# HG changeset patch # User Cameron Simpson # Date 1687053478 -36000 # Sun Jun 18 11:57:58 2023 +1000 # Branch mitm # Node ID b7110ec9cb29d2a382bf4d8f92939fcdfc97a8e9 # Parent 5e7cef589b2c870cf19ee3bfe2b3fbf3a6e53770 cs.app.playon: PlayOnAPI.suburl: drop api_version and _base_url parameters, we use the @api decorator for these now diff --git a/lib/python/cs/app/playon.py b/lib/python/cs/app/playon.py --- a/lib/python/cs/app/playon.py +++ b/lib/python/cs/app/playon.py @@ -851,17 +851,13 @@ ''' return self.sqltags[download_id] - def suburl( - self, suburl, *, api_version=None, headers=None, _base_url=None, **kw - ): + def suburl(self, suburl, *, headers=None, **kw): ''' Override `HTTPServiceAPI.suburl` with default `headers={'Authorization':self.jwt}`. ''' - if _base_url is None: - _base_url = None if api_version is None else f'api/v{api_version}' if headers is None: headers = dict(Authorization=self.jwt) - return super().suburl(suburl, _base_url=_base_url, headers=headers, **kw) + return super().suburl(suburl, headers=headers, **kw) def suburl_data(self, suburl, *, raw=False, **kw): ''' Call `suburl` and return the `'data'` component on success.