Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade API to 14 #369

Merged
merged 2 commits into from
Nov 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading