Skip to content

Commit

Permalink
Fix getting kwargs (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
mediaminister authored Dec 6, 2022
1 parent 3a60143 commit 5aa2dab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/lib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def convert_programs(api_data, destination, use_favorites=False, **kwargs):

# Paging
# Remove kwargs with None value
kwargs = {k: v for k, v in kwargs.items() if v is not None}
kwargs = {k: v for k, v in list(kwargs.items()) if v is not None}
page_info = api_data.get('data').get('list').get('paginated').get('pageInfo')

# FIXME: find a better way to disable more when favorites are filtered
Expand Down Expand Up @@ -836,7 +836,7 @@ def convert_episodes(api_data, destination, use_favorites=False, **kwargs):

# Paging
# Remove kwargs with None value
kwargs = {k: v for k, v in kwargs.items() if v is not None}
kwargs = {k: v for k, v in list(kwargs.items()) if v is not None}
page_info = api_data.get('data').get('list').get('paginated').get('pageInfo')

# FIXME: find a better way to disable more when favorites are filtered
Expand Down

0 comments on commit 5aa2dab

Please sign in to comment.