Skip to content

Commit

Permalink
Upgrade API to 14 (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts authored Nov 4, 2023
1 parent 80ac4b5 commit 1dd1646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/lib/streamz/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ def do_search(self, search):
:type search: str
:rtype list[Union[Movie, Program]]
"""
response = util.http_get(API_ENDPOINT + '/%s/search/?query=%s' % (self._mode(),
kodiutils.to_unicode(quote(kodiutils.from_unicode(search)))),
response = util.http_get(API_ENDPOINT + '/%s/search?query=%s' % (self._mode(),
kodiutils.to_unicode(quote(kodiutils.from_unicode(search)))),
token=self._tokens.access_token,
profile=self._tokens.profile)
results = json.loads(response.text)
Expand Down
4 changes: 2 additions & 2 deletions resources/lib/streamz/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def close(self):
# Setup a static session that can be reused for all calls
SESSION = requests.Session()
SESSION.headers = {
'User-Agent': 'STREAMZ/13.8 (be.dpgmedia.streamz; build:17133; Android TV 28) okhttp/4.10.0',
'x-app-version': '13',
'User-Agent': 'STREAMZ/14.231023 (be.vmma.streamz; build:18041; Android 23) okhttp/4.11.0',
'x-app-version': '14',
'x-persgroep-mobile-app': 'true',
'x-persgroep-os': 'android',
'x-persgroep-os-version': '28',
Expand Down

0 comments on commit 1dd1646

Please sign in to comment.