Skip to content

Commit

Permalink
Fix getting program lists (#1172)
Browse files Browse the repository at this point in the history
  • Loading branch information
mediaminister authored May 14, 2024
1 parent e173652 commit 572f826
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/lib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,10 +1039,11 @@ def get_programs(category=None, channel=None, keywords=None, end_cursor=''):
'values': ['video-program'],
})
search_dict = {
'q': query_string,
'facets': facets,
'resultType': 'watch',
}
if query_string:
search_dict['q'] = query_string
encoded_search = base64.b64encode(dumps(search_dict).encode('utf-8'))
list_id = 'tl-pag-srch|watch#{}'.format(encoded_search.decode('utf-8'))
list_id = '#{}'.format(base64.b64encode(list_id.encode('utf-8')).decode('utf-8'))
Expand Down

0 comments on commit 572f826

Please sign in to comment.