Skip to content

Commit

Permalink
Upgrade API to 14 (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts authored Nov 4, 2023
1 parent c95d029 commit bf4dff5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/lib/vtmgo/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# Setup a static session that can be reused for all calls
SESSION = requests.Session()
SESSION.headers = {
'User-Agent': 'VTM_GO/13.12 (be.vmma.vtm.zenderapp; build:17181; Android TV 28) okhttp/4.10.0',
'x-app-version': '13',
'User-Agent': 'VTM_GO/14.231023 (be.vmma.vtm.zenderapp; 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
4 changes: 2 additions & 2 deletions resources/lib/vtmgo/vtmgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,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 if self._tokens else None,
profile=self._tokens.profile if self._tokens else None)
results = json.loads(response.text)
Expand Down

0 comments on commit bf4dff5

Please sign in to comment.