From b9ee09e965b67fc13664dbe68fc02514fd2a188d Mon Sep 17 00:00:00 2001 From: michaelarnauts Date: Sun, 5 Nov 2023 20:48:19 +0100 Subject: [PATCH] [plugin.video.vtm.go] 1.4.3+matrix.1 --- plugin.video.vtm.go/CHANGELOG.md | 8 ++++++++ plugin.video.vtm.go/addon.xml | 6 +++--- plugin.video.vtm.go/resources/lib/vtmgo/util.py | 4 ++-- plugin.video.vtm.go/resources/lib/vtmgo/vtmgo.py | 4 ++-- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/plugin.video.vtm.go/CHANGELOG.md b/plugin.video.vtm.go/CHANGELOG.md index 304ebffe5a..545721efd5 100644 --- a/plugin.video.vtm.go/CHANGELOG.md +++ b/plugin.video.vtm.go/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [v1.4.3](https://github.com/add-ons/plugin.video.vtm.go/tree/v1.4.3) (2023-11-04) + +[Full Changelog](https://github.com/add-ons/plugin.video.vtm.go/compare/v1.4.2...v1.4.3) + +**Fixed bugs:** + +- Upgrade API to 14 [\#369](https://github.com/add-ons/plugin.video.vtm.go/pull/369) ([michaelarnauts](https://github.com/michaelarnauts)) + ## [v1.4.2](https://github.com/add-ons/plugin.video.vtm.go/tree/v1.4.2) (2023-07-26) [Full Changelog](https://github.com/add-ons/plugin.video.vtm.go/compare/v1.4.1...v1.4.2) diff --git a/plugin.video.vtm.go/addon.xml b/plugin.video.vtm.go/addon.xml index 2ec46b74ac..a915b03044 100644 --- a/plugin.video.vtm.go/addon.xml +++ b/plugin.video.vtm.go/addon.xml @@ -1,5 +1,5 @@ - + @@ -22,8 +22,8 @@ Deze add-on wordt niet ondersteund door DPG Media en wordt aangeboden 'as is', zonder enige garantie. De VTM GO naam, VTM GO logo en de kanaallogo's zijn eigendom van DPG Media en worden gebruikt in overeenstemming met de fair use policy. all GPL-3.0-only - v1.4.2 (2023-07-26) -- Fix for missing episodes. + v1.4.3 (2023-11-04) +- Fix API. https://github.com/add-ons/plugin.video.vtm.go resources/icon.png diff --git a/plugin.video.vtm.go/resources/lib/vtmgo/util.py b/plugin.video.vtm.go/resources/lib/vtmgo/util.py index d81294db06..704c2f67b6 100644 --- a/plugin.video.vtm.go/resources/lib/vtmgo/util.py +++ b/plugin.video.vtm.go/resources/lib/vtmgo/util.py @@ -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', diff --git a/plugin.video.vtm.go/resources/lib/vtmgo/vtmgo.py b/plugin.video.vtm.go/resources/lib/vtmgo/vtmgo.py index 05dbe49fba..341870c1d0 100644 --- a/plugin.video.vtm.go/resources/lib/vtmgo/vtmgo.py +++ b/plugin.video.vtm.go/resources/lib/vtmgo/vtmgo.py @@ -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)