Skip to content

Commit

Permalink
Fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts committed Nov 4, 2023
1 parent 118f381 commit 0dcc305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/lib/vtmgo/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# 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',
'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',
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 0dcc305

Please sign in to comment.