Skip to content

Commit

Permalink
Bump API to 15
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts committed Feb 26, 2024
1 parent 8336ddb commit c55f178
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/lib/streamz/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_storefront_category(self, storefront, category):
result = json.loads(response.text)

items = []
for item in result.get('teasers'):
for item in result.get('row', {}).get('teasers', []):
if item.get('target', {}).get('type') == CONTENT_TYPE_MOVIE:
items.append(self._parse_movie_teaser(item))

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/14.231023 (be.vmma.streamz; build:18041; Android 23) okhttp/4.11.0',
'x-app-version': '14',
'User-Agent': 'STREAMZ/15.231023 (be.vmma.streamz; build:18041; Android 23) okhttp/4.11.0',
'x-app-version': '15',
'x-persgroep-mobile-app': 'true',
'x-persgroep-os': 'android',
'x-persgroep-os-version': '28',
Expand Down

0 comments on commit c55f178

Please sign in to comment.